Skip to content

Commit

Permalink
adding location?.path to dep array
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Jun 9, 2023
1 parent 65d493b commit 584d9ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function SidebarNavigationScreenMain() {
if ( location?.path === '/' ) {
setEditorCanvasContainerView( undefined );
}
}, [ setEditorCanvasContainerView ] );
}, [ setEditorCanvasContainerView, location?.path ] );

return (
<SidebarNavigationScreen
Expand Down

0 comments on commit 584d9ea

Please sign in to comment.