Skip to content

Commit

Permalink
Fix for registerResetAllFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Dec 5, 2023
1 parent 0861b0d commit 17a7dcb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/components/src/tools-panel/tools-panel-item/hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ export function useToolsPanelItem(

// eslint-disable-next-line react-hooks/exhaustive-deps
const hasValueCallback = useCallback( hasValue, [ panelId ] );
const resetAllFilterCallback = useCallback( resetAllFilter, [
panelId,
resetAllFilter,
] );
// eslint-disable-next-line react-hooks/exhaustive-deps
const resetAllFilterCallback = useCallback( resetAllFilter, [ panelId ] );
const previousPanelId = usePrevious( currentPanelId );

const hasMatchingPanel =
Expand Down

0 comments on commit 17a7dcb

Please sign in to comment.