Skip to content

Commit

Permalink
URLSearchParams.get returns null
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnajdr committed May 8, 2024
1 parent 2689a5e commit 4180577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/router/src/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function preserveThemePreview( params ) {
}
const currentSearch = new URLSearchParams( history.location.search );
const currentThemePreview = currentSearch.get( 'wp_theme_preview' );
if ( currentThemePreview === undefined ) {
if ( currentThemePreview === null ) {
return params;
}
return { ...params, wp_theme_preview: currentThemePreview };
Expand Down

0 comments on commit 4180577

Please sign in to comment.