Skip to content

Commit

Permalink
mini fix for submenuEnabled being undefined, when initiating a dashbo…
Browse files Browse the repository at this point in the history
…ard with empty model
  • Loading branch information
torkelo committed Jan 28, 2015
1 parent c0353ab commit cf5595b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/features/dashboard/dashboardCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function (angular, $, config, _) {
};

$scope.checkFeatureToggles = function() {
$scope.submenuEnabled = $scope.dashboard.templating.enable || $scope.dashboard.annotations.enable;
$scope.submenuEnabled = $scope.dashboard.templating.enable || $scope.dashboard.annotations.enable || false;
};

$scope.onDrop = function(panelId, row, dropTarget) {
Expand Down

0 comments on commit cf5595b

Please sign in to comment.