Skip to content

Commit

Permalink
Fix error on firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
gashcrumb committed Nov 13, 2013
1 parent 0d5e0ad commit 89a6f22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hawtio-web/src/main/webapp/app/core/js/navbar.ts
Expand Up @@ -144,7 +144,9 @@ module Core {
if (currentId != $scope.perspectiveId || angular.toJson($scope.perspectives) !== angular.toJson(perspectives)) {
$scope.perspectiveId = currentId;
$scope.perspectives = perspectives;
$scope.perspectiveDetails.perspective = $scope.perspectives.find({id: currentId});
$scope.perspectiveDetails.perspective = $scope.perspectives.find((p) => {
return p['id'] === currentId;
});
console.log("Current perspective ID: " + currentId);
$scope.topLevelTabs = Perspective.topLevelTabs($location, workspace, jolokia, localStorage);
}
Expand Down

0 comments on commit 89a6f22

Please sign in to comment.