mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix filters connected using a global state
This commit is contained in:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user