[WEB-830] chore: project filter dropdown custom date select option improvement (#4069)

* chore: project filter dropdown custom date select option improvement

* fix: project filter custom date
This commit is contained in:
Anmol Singh Bhatia
2024-04-03 18:03:16 +05:30
committed by GitHub
parent 68ebcfd04e
commit e7fc942514
3 changed files with 19 additions and 1 deletions

View File

@@ -57,6 +57,7 @@ export const ProjectsHeader = observer(() => {
if (Array.isArray(value))
value.forEach((val) => {
if (!newValues.includes(val)) newValues.push(val);
else newValues.splice(newValues.indexOf(val), 1);
});
else {
if (filters?.[key]?.includes(value)) newValues.splice(newValues.indexOf(value), 1);