Преглед изворни кода

mini fix for submenuEnabled being undefined, when initiating a dashboard with empty model

Torkel Ödegaard пре 11 година
родитељ
комит
cf5595bd64
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/app/features/dashboard/dashboardCtrl.js

+ 1 - 1
src/app/features/dashboard/dashboardCtrl.js

@@ -105,7 +105,7 @@ function (angular, $, config, _) {
     };
     };
 
 
     $scope.checkFeatureToggles = function() {
     $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) {
     $scope.onDrop = function(panelId, row, dropTarget) {