Skip to content

Commit

Permalink
Adjust retrieval of location query params.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Dec 11, 2024
1 parent 1ed7d7b commit 1ead3d8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ const { interfaceStore } = unlock( editorPrivateApis );
const { useLocation } = unlock( routerPrivateApis );

function ScreenRoot() {
const { params } = useLocation();
const { canvas = 'view' } = params;
const { query } = useLocation();
const { canvas = 'view' } = query;
const {
hasVariations,
canEditCSS,
Expand Down

0 comments on commit 1ead3d8

Please sign in to comment.