Skip to content

Commit

Permalink
move awaitingRemoval control variable (#124913) (#125029)
Browse files Browse the repository at this point in the history
(cherry picked from commit 16292de)
  • Loading branch information
ThomThomson authored Feb 8, 2022
1 parent 67ca990 commit d559f07
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ const loadDashboardUrlState = ({
if (!awaitingRemoval) {
awaitingRemoval = true;
kbnUrlStateStorage.kbnUrlControls.updateAsync((nextUrl) => {
awaitingRemoval = false;
if (nextUrl.includes(DASHBOARD_STATE_STORAGE_KEY)) {
return replaceUrlHashQuery(nextUrl, (query) => {
delete query[DASHBOARD_STATE_STORAGE_KEY];
return query;
});
}
awaitingRemoval = false;
return nextUrl;
}, true);
}
Expand Down

0 comments on commit d559f07

Please sign in to comment.