Przeglądaj źródła

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

Torkel Ödegaard 11 lat temu
rodzic
commit
cf5595bd64
1 zmienionych plików z 1 dodań i 1 usunięć
  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) {