Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit 5c09e28

Browse files
fix(uiSrefActive): Avoid "Possibly unhandled rejection" in console
- Added a .catch() clause to the promise handler Closes angular-ui/ui-router#3404 Closes angular-ui/ui-router#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

Lines changed: 1 addition & 1 deletion
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)