|
|
@ -51,11 +51,11 @@ export function useViewFilters( |
|
|
|
set: (value: Filter[]) => { |
|
|
|
set: (value: Filter[]) => { |
|
|
|
if (nestedMode.value) { |
|
|
|
if (nestedMode.value) { |
|
|
|
currentFilters = value |
|
|
|
currentFilters = value |
|
|
|
if (isNestedRoot) nestedFilters.value = value |
|
|
|
if (isNestedRoot) { |
|
|
|
|
|
|
|
nestedFilters.value = value |
|
|
|
nestedFilters.value = [...nestedFilters.value] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tabMeta.value.filterState!.set(view!.value.id!, nestedFilters.value) |
|
|
|
tabMeta.value.filterState!.set(view!.value.id!, nestedFilters.value) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
nestedFilters.value = [...nestedFilters.value] |
|
|
|
reloadHook?.trigger() |
|
|
|
reloadHook?.trigger() |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
@ -77,6 +77,7 @@ export function useViewFilters( |
|
|
|
|
|
|
|
|
|
|
|
const loadFilters = async (hookId?: string) => { |
|
|
|
const loadFilters = async (hookId?: string) => { |
|
|
|
if (nestedMode.value) { |
|
|
|
if (nestedMode.value) { |
|
|
|
|
|
|
|
if (isNestedRoot) |
|
|
|
filters.value = tabMeta.value.filterState!.get(view.value.id!) || [] |
|
|
|
filters.value = tabMeta.value.filterState!.get(view.value.id!) || [] |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|