Skip to content

Commit 38c8afe

Browse files
authored
Fix status filter query param on applications page (#798)
fix: Status filter query param
1 parent 92fd285 commit 38c8afe

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)