Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
feat(store): unset query parameter when value is null or undefined
Browse files Browse the repository at this point in the history
Closes: #121
  • Loading branch information
rayrutjes committed May 23, 2017
1 parent 7d87564 commit 801914e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,9 @@ export class Store {
set queryParameters(parameters) {
this.stop();
for (let parameter in parameters) {
if (parameters[parameter] === null) {
parameters[parameter] = undefined;
}
this._helper.setQueryParameter(parameter, parameters[parameter]);
}

Expand Down

0 comments on commit 801914e

Please sign in to comment.