Skip to content

Commit

Permalink
move awaitingRemoval control variable (#124913)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomThomson authored Feb 8, 2022
1 parent 3249e56 commit 16292de
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 16292de

Please sign in to comment.