Skip to content

Commit

Permalink
Try to fix #17963
Browse files Browse the repository at this point in the history
Try to fix #17963, I'm not sure this is the right way and it's weird, but the old "qualifiedRouteName" property works in this way and "_route" is used similarly to "qualifiedRouteName".
  • Loading branch information
2hu12 committed May 7, 2019
1 parent 9975397 commit 21edc29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/@ember/-internals/glimmer/lib/components/link-to.ts
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,9 @@ if (EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS) {
_currentRouterState: alias('_routing.currentState'),
_targetRouterState: alias('_routing.targetState'),

_route: computed('route', '_currentRoute', function computeLinkToComponentRoute(this: any) {
_route: computed('route', '_currentRouterState', function computeLinkToComponentRoute(
this: any
) {
let { route } = this;
return route === UNDEFINED ? this._currentRoute : route;
}),
Expand Down

0 comments on commit 21edc29

Please sign in to comment.