Skip to content

Commit 5c09e28

Browse files
fix(uiSrefActive): Avoid "Possibly unhandled rejection" in console
- Added a .catch() clause to the promise handler Closes #3404 Closes #3309
1 parent e02262d commit 5c09e28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/directives/stateDirectives.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ uiSrefActive = ['$state', '$stateParams', '$interpolate', '$uiRouter',
564564
};
565565

566566
function updateAfterTransition(trans) {
567-
trans.promise.then(update);
567+
trans.promise.then(update, noop);
568568
}
569569

570570
$scope.$on('$stateChangeSuccess', update);

0 commit comments

Comments
 (0)