Skip to content

Commit

Permalink
fix(router): fix NavigationInstructionInit's queryParams
Browse files Browse the repository at this point in the history
  • Loading branch information
gheoan committed Sep 20, 2017
1 parent a398f55 commit 1266b0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ export class Router {
} else if (this.catchAllHandler) {
let instruction = new NavigationInstruction(Object.assign({}, instructionInit, {
params: { path: fragment },
queryParams: results && results.queryParams,
queryParams: results ? results.queryParams : {},
config: null // config will be created by the catchAllHandler
}));

Expand All @@ -443,7 +443,7 @@ export class Router {

let instruction = new NavigationInstruction(Object.assign({}, instructionInit, {
params: { path: fragment },
queryParams: results && results.queryParams,
queryParams: results ? results.queryParams : {},
router: router,
parentInstruction: newParentInstruction,
parentCatchHandler: true,
Expand Down

0 comments on commit 1266b0b

Please sign in to comment.