fix: filter none updated (#1399)

This commit is contained in:
Anmol Singh Bhatia 2023-06-26 18:08:49 +05:30 committed by GitHub
parent ad3411284b
commit 3f22ccc528
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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),
})), })),
], ],
}, },