Skip to content

Commit

Permalink
Fix native filters
Browse files Browse the repository at this point in the history
  • Loading branch information
kgabryje committed Nov 19, 2024
1 parent b5e05cf commit c8d5eca
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
useEffect,
useState,
useCallback,
createContext,
useRef,
useMemo,
} from 'react';
Expand Down Expand Up @@ -130,7 +129,6 @@ const publishDataMask = debounce(
SLOW_DEBOUNCE,
);

export const FilterBarScrollContext = createContext(false);
const FilterBar: FC<FiltersBarProps> = ({
orientation = FilterBarOrientation.Vertical,
verticalConfig,
Expand Down Expand Up @@ -216,10 +214,9 @@ const FilterBar: FC<FiltersBarProps> = ({

if (!isEmpty(updates)) {
setDataMaskSelected(draft => ({ ...draft, ...updates }));
Object.keys(updates).forEach(key => dispatch(clearDataMask(key)));
}
}
}, [JSON.stringify(filters), previousDashboardId]);
}, [dashboardId, filters, previousDashboardId, setDataMaskSelected]);

const dataMaskAppliedText = JSON.stringify(dataMaskApplied);

Expand Down

0 comments on commit c8d5eca

Please sign in to comment.