File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,10 @@ function getTransitionsProvider() {
273
273
loadAllControllerLocals . $inject = [ '$transition$' ] ;
274
274
function loadAllControllerLocals ( $transition$ ) {
275
275
const loadLocals = ( vc : Ng1ViewConfig ) => {
276
- let resolveCtx = ( < Node > find ( $transition$ . treeChanges ( ) . to , propEq ( 'state' , vc . viewDecl . $context ) ) ) . resolveContext ;
276
+ let node = ( < Node > find ( $transition$ . treeChanges ( ) . to , propEq ( 'state' , vc . viewDecl . $context ) ) ) ;
277
+ // Temporary fix; This whole callback should be nuked when fixing #2662
278
+ if ( ! node ) return services . $q . when ( ) ;
279
+ let resolveCtx = node . resolveContext ;
277
280
let controllerDeps = annotateController ( vc . controller ) ;
278
281
let resolvables = resolveCtx . getResolvables ( ) ;
279
282
You can’t perform that action at this time.
0 commit comments