Skip to content

Commit

Permalink
[chore] Cleanup settings code style as reported. Fixes #6588.
Browse files Browse the repository at this point in the history
  • Loading branch information
bevacqua committed Mar 30, 2016
1 parent d28cb32 commit 7b43d52
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/plugins/kibana/public/settings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@ uiModules
},
link: function ($scope, $el) {
timefilter.enabled = false;
$scope.sections = sections;
$scope.sections = sections.inOrder;
$scope.section = _.find($scope.sections, { name: $scope.sectionName });

$scope.sections.forEach(function (section) {
section.class = (section === $scope.section) ? 'active' : void 0;
$scope.sections.forEach(section => {
section.class = section === $scope.section ? 'active' : undefined;
});
}
};
Expand Down

0 comments on commit 7b43d52

Please sign in to comment.