forked from github/plane
fix: issue with clear filter option not working for filter groups in create view modal. (#3081)
This commit is contained in:
parent
c7cad452ab
commit
3b12332704
@ -54,7 +54,14 @@ export const ProjectViewForm: React.FC<Props> = observer(({ handleFormSubmit, ha
|
||||
|
||||
// for removing filters from a key
|
||||
const handleRemoveFilter = (key: keyof IIssueFilterOptions, value: string | null) => {
|
||||
if (!value) return;
|
||||
// If value is null then remove all the filters of that key
|
||||
if (!value) {
|
||||
setValue("query_data", {
|
||||
...selectedFilters,
|
||||
[key]: null,
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
const newValues = selectedFilters?.[key] ?? [];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user