fix filters connected using a global state

This commit is contained in:
Harsh Mahajan
2026-02-06 15:07:51 +05:30
parent b0b2cfc69c
commit 3e7b155cb7
+2
View File
@@ -11,11 +11,13 @@ export const parsedTags = writable<ParsedTag[]>([]);
export function setFilters(localTags: TagValue[], filterCols: FilterData[], $columns: Column[]) {
if (!localTags?.length) {
parsedTags.set([]);
filterCols.forEach((filter) => {
resetOptions(filter);
cleanOldTags(filter?.title);
});
} else {
parsedTags.set([]);
filterCols.forEach((filter) => {
const id = filter?.id?.toLowerCase();
if (id?.includes('duration')) {