From 872fda191fd4aa8cb2a8edec075bb9e039940514 Mon Sep 17 00:00:00 2001 From: Manuel Guilbault Date: Fri, 9 Dec 2016 17:26:26 +0100 Subject: [PATCH] fix(Router): fix an error when updateTitle is called but there is not current instruction --- src/router.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/router.js b/src/router.js index 9443e357..20ea7978 100644 --- a/src/router.js +++ b/src/router.js @@ -341,7 +341,9 @@ export class Router { return this.parent.updateTitle(); } - this.currentInstruction._updateTitle(); + if (this.currentInstruction) { + this.currentInstruction._updateTitle(); + } return undefined; }