Skip to content

Commit

Permalink
Brandon suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
ajotka committed Oct 31, 2024
1 parent 419deb7 commit 02932bb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ export function EnsurePlaygroundSiteIsSelected({
const notRefreshingParam = 'modal';
const oldParams = new URLSearchParams(prevUrl?.search);
const newParams = new URLSearchParams(url?.search);

if ((!oldParams.has(notRefreshingParam) && newParams.has(notRefreshingParam)) || (oldParams.has(notRefreshingParam) && !newParams.has(notRefreshingParam))) {
oldParams.delete(notRefreshingParam);
newParams.delete(notRefreshingParam);
if (oldParams.toString() === newParams.toString()) {
return;
}

Expand Down

0 comments on commit 02932bb

Please sign in to comment.