Skip to content

Commit 9483db5

Browse files
authored
Merge pull request #802 from Real-Dev-Squad/develop
Dev to Main sync
2 parents 05b8ebb + 38c8afe commit 9483db5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

applications/script.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,9 @@ function changeLoaderVisibility({ hide }) {
224224

225225
function addQueryParamInUrl(queryParamKey, queryParamVal) {
226226
const currentUrlParams = new URLSearchParams(window.location.search);
227+
if (currentUrlParams.has(queryParamKey)) {
228+
currentUrlParams.delete(queryParamKey);
229+
}
227230
currentUrlParams.append(queryParamKey, queryParamVal);
228231
const updatedUrl = '/applications/?' + currentUrlParams.toString();
229232
window.history.replaceState(window.history.state, '', updatedUrl);

0 commit comments

Comments
 (0)