Skip to content

Commit

Permalink
fix: update dependency arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshenJ committed Sep 30, 2024
1 parent 537cfa0 commit a3eb58b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/AllPagesPanel/AllPagesPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const AllPagesPanel: React.FC<AllPagesPanelProps> = (props) => {
if (isEditMode) {
onOpenEditMode?.();
}
}, [isEditMode, onEditModeChanged]);
}, [isEditMode, onEditModeChanged, onOpenEditMode]);

const onItemClick = useCallback((item: ListItemData<MenuItem>) => {
//@ts-ignore TODO fix when @gravity-ui/uikit/List will provide event arg on item click
Expand All @@ -75,7 +75,7 @@ export const AllPagesPanel: React.FC<AllPagesPanelProps> = (props) => {
}),
);
},
[onMenuItemsChanged],
[onMenuItemsChanged, onToggleMenuItem],
);

const itemRender = useCallback(
Expand Down

0 comments on commit a3eb58b

Please sign in to comment.