Jelajahi Sumber

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

Torkel Ödegaard 11 tahun lalu
induk
melakukan
cf5595bd64
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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.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) {