1
0
mirror of https://github.com/bitwarden/web synced 2026-01-06 18:43:18 +00:00

lint fixes

This commit is contained in:
Kyle Spearrin
2017-12-19 12:15:24 -05:00
parent 0d2bf4f7a1
commit bf885c184f
4 changed files with 6 additions and 6 deletions

View File

@@ -152,9 +152,9 @@
if ($state.params.viewEvents) {
$uibModalStack.dismissAll();
var user = $filter('filter')($scope.users, { id: $state.params.viewEvents });
if (user && user.length) {
$scope.events(user[0]);
var eventUser = $filter('filter')($scope.users, { id: $state.params.viewEvents });
if (eventUser && eventUser.length) {
$scope.events(eventUser[0]);
}
}
});