Skip to content

Commit 9557f41

Browse files
ExpDev07marcoow
authored andcommitted
Fix outdated guide. (mainmatter#1924)
Per ember-cli/ember-cli#6282, we can't ``this._super`` after ``await`` anymore. This updates the guide to conform to these changes. Had me stuck a while.
1 parent 59fb543 commit 9557f41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

guides/managing-current-user.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,9 @@ export default Ember.Route.extend(ApplicationRouteMixin, {
151151
},
152152

153153
async sessionAuthenticated() {
154+
let _super = this._super;
154155
await this._loadCurrentUser();
155-
this._super(...arguments);
156+
_super.call(this, ...arguments);
156157
},
157158

158159
_loadCurrentUser() {

0 commit comments

Comments
 (0)