Skip to content

Commit

Permalink
move setting current canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
SaxonF committed May 29, 2023
1 parent 28d80f4 commit 79d1116
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export default function useSyncCanvasModeWithURL() {
}, [ canvasMode, history ] );

useEffect( () => {
currentCanvasInUrl.current = canvasInUrl;
if (
canvasInUrl === undefined &&
currentCanvasMode.current !== 'view'
Expand All @@ -69,5 +68,6 @@ export default function useSyncCanvasModeWithURL() {
) {
setCanvasMode( 'edit' );
}
currentCanvasInUrl.current = canvasInUrl;
}, [ canvasInUrl, setCanvasMode ] );
}

0 comments on commit 79d1116

Please sign in to comment.