Skip to content

Commit f2910e9

Browse files
fix($state): Fix "Possibly unhandled rejection" by catch()ing the transition promise
Now calling `.catch()` on the transition promise Closes #3246 Closes #2889
1 parent cc62abe commit f2910e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/state.js

+1
Original file line numberDiff line numberDiff line change
@@ -1219,6 +1219,7 @@ function $StateProvider( $urlRouterProvider, $urlMatcherFactory) {
12191219
return $q.reject(error);
12201220
});
12211221

1222+
transition.catch(angular.noop);
12221223
return transition;
12231224
};
12241225

0 commit comments

Comments
 (0)