Fix: keep the filter edition open if it is empty (#2986)

Co-authored-by: 曹志浩 <caozhihao@quyiyuan.com>
Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Cao Z.H
2023-12-16 04:39:17 +08:00
committed by GitHub
parent 72929d1de6
commit 18b2e2b748
2 changed files with 9 additions and 6 deletions

View File

@ -209,11 +209,6 @@ export const useViewFilters = (viewScopeId: string) => {
return filtersDraft;
}
if (filterToUpsert.value === '') {
filtersDraft.splice(existingFilterIndex, 1);
return filtersDraft;
}
filtersDraft[existingFilterIndex] = {
...filterToUpsert,
id: existingSavedFilterId,