Permalink
Browse files

fix(router): fix NavigationInstructionInit's queryParams

  • Loading branch information...
gheoan committed Sep 20, 2017
1 parent a398f55 commit 1266b0b79d5f190adc27ba7547d3251a3a1dfa24
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/router.js
View
@@ -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
}));
@@ -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,

0 comments on commit 1266b0b

Please sign in to comment.