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 9, 2024
1 parent 11afa00 commit 875bd10
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 875bd10

Please sign in to comment.