fix column filter
This commit is contained in:
parent
ac1adfc6b5
commit
fb59e05df5
@ -371,7 +371,13 @@ export default function Svod2Page() {
|
|||||||
[sheet, year, selectedOrganizations],
|
[sheet, year, selectedOrganizations],
|
||||||
);
|
);
|
||||||
const hasCurrentData = loadedQueryKey === currentQueryKey;
|
const hasCurrentData = loadedQueryKey === currentQueryKey;
|
||||||
const updateCurrentSheetFilters = useCallback((changes) => updateSheetFilters(sheet, changes), [sheet, updateSheetFilters]);
|
const updateCurrentSheetFilters = useCallback(
|
||||||
|
(changes) => {
|
||||||
|
updateSheetFilters(sheet, changes);
|
||||||
|
setColumnFiltersBySheet((current) => (current[sheet].length ? { ...current, [sheet]: [] } : current));
|
||||||
|
},
|
||||||
|
[sheet, updateSheetFilters],
|
||||||
|
);
|
||||||
const updateCurrentColumnFilters = useCallback(
|
const updateCurrentColumnFilters = useCallback(
|
||||||
(updater) => {
|
(updater) => {
|
||||||
setColumnFiltersBySheet((current) => {
|
setColumnFiltersBySheet((current) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user