Skip to content

Commit

Permalink
fix: add dependencies so that callback has freshest id
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-golovanov committed Dec 24, 2024
1 parent e45cbdf commit 00007ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function AppJSEditorContextMenu({
setTimeout(() => {
dispatch(setRenameEntity(jsCollection.id));
}, 100);
}, []);
}, [dispatch, jsCollection.id]);

const copyJSCollectionToPage = useCallback(
(actionId: string, actionName: string, pageId: string) => {
Expand Down

0 comments on commit 00007ae

Please sign in to comment.