Skip to content

Commit

Permalink
fix: Handle undefined controller (#5183)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamareebjamal authored Sep 29, 2020
1 parent 7de44a5 commit 734ae8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ export default class IndexRoute extends Route {
@action
loading(transition) {
transition.promise.finally(() => {
this.controller.set('finishedLoading', true);
if (this.controller) {
this.controller.set('finishedLoading', true);
}
});
return false;
}
Expand Down

0 comments on commit 734ae8e

Please sign in to comment.