forked from github/plane
fix: filter none updated (#1399)
This commit is contained in:
parent
ad3411284b
commit
3f22ccc528
@ -70,7 +70,7 @@ export const SelectFilters: React.FC<Props> = ({
|
|||||||
value: PRIORITIES,
|
value: PRIORITIES,
|
||||||
children: [
|
children: [
|
||||||
...PRIORITIES.map((priority) => ({
|
...PRIORITIES.map((priority) => ({
|
||||||
id: priority ?? "none",
|
id: priority === null ? "null" : priority,
|
||||||
label: (
|
label: (
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
{getPriorityIcon(priority)} {priority ?? "None"}
|
{getPriorityIcon(priority)} {priority ?? "None"}
|
||||||
@ -78,9 +78,9 @@ export const SelectFilters: React.FC<Props> = ({
|
|||||||
),
|
),
|
||||||
value: {
|
value: {
|
||||||
key: "priority",
|
key: "priority",
|
||||||
value: priority,
|
value: priority === null ? "null" : priority,
|
||||||
},
|
},
|
||||||
selected: filters?.priority?.includes(priority ?? "none"),
|
selected: filters?.priority?.includes(priority === null ? "null" : priority),
|
||||||
})),
|
})),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user