Skip to content

Commit

Permalink
fix(uiSrefActive): Avoid "Possibly unhandled rejection" in console
Browse files Browse the repository at this point in the history
- Added a .catch() clause to the promise handler

Closes #3404
Closes #3309
  • Loading branch information
christopherthielen committed Jun 9, 2017
1 parent e02262d commit 5c09e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/directives/stateDirectives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ uiSrefActive = ['$state', '$stateParams', '$interpolate', '$uiRouter',
};

function updateAfterTransition(trans) {
trans.promise.then(update);
trans.promise.then(update, noop);
}

$scope.$on('$stateChangeSuccess', update);
Expand Down

0 comments on commit 5c09e28

Please sign in to comment.