mirror of
https://github.com/grafana/grafana.git
synced 2025-01-18 04:23:33 -06:00
mini fix for submenuEnabled being undefined, when initiating a dashboard with empty model
This commit is contained in:
parent
c0353ab5d8
commit
cf5595bd64
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user