change: sort task labels based on label color position
This commit is contained in:
parent
559fcbc0e4
commit
a90ace7a06
@ -166,7 +166,10 @@ const Card = React.forwardRef(
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{labels &&
|
{labels &&
|
||||||
labels.map(label => (
|
labels
|
||||||
|
.slice()
|
||||||
|
.sort((a, b) => a.labelColor.position - b.labelColor.position)
|
||||||
|
.map(label => (
|
||||||
<ListCardLabel
|
<ListCardLabel
|
||||||
onAnimationEnd={() => {
|
onAnimationEnd={() => {
|
||||||
if (setToggleLabels) {
|
if (setToggleLabels) {
|
||||||
|
Loading…
Reference in New Issue
Block a user