Skip to content
Snippets Groups Projects
Commit 10a67dd1 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

small correction to Query URL manipulation JS (related to #117)

parent 4ed5fd66
No related branches found
No related tags found
No related merge requests found
Pipeline #15794 passed
......@@ -11,7 +11,7 @@ class QueryUrl {
this.url.searchParams.delete(paramName);
paramValue.forEach(function(value) {
this.url.searchParams.append(paramName, value);
});
}.bind(this));
} else if (paramValue != null) {
// set one value for one parameter
this.url.searchParams.set(paramName, paramValue);
......@@ -19,7 +19,7 @@ class QueryUrl {
// unset value for multiple parameters
paramName.forEach(function(name) {
this.url.searchParams.delete(name);
});
}.bind(this));
} else {
// unset value for one parameter
this.url.searchParams.delete(paramName);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment