Skip to content

Commit

Permalink
Merge pull request aurelia#444 from manuel-guilbault/master
Browse files Browse the repository at this point in the history
fix(Router): fix an error when updateTitle is called but there is no current instruction
  • Loading branch information
EisenbergEffect authored Dec 25, 2016
2 parents 993ada4 + 872fda1 commit c3aa763
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,9 @@ export class Router {
return this.parent.updateTitle();
}

this.currentInstruction._updateTitle();
if (this.currentInstruction) {
this.currentInstruction._updateTitle();
}
return undefined;
}

Expand Down

0 comments on commit c3aa763

Please sign in to comment.