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() {
273273 loadAllControllerLocals . $inject = [ '$transition$' ] ;
274274 function loadAllControllerLocals ( $transition$ ) {
275275 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 ;
277280 let controllerDeps = annotateController ( vc . controller ) ;
278281 let resolvables = resolveCtx . getResolvables ( ) ;
279282
You can’t perform that action at this time.
0 commit comments