Commit cf5595bd by Torkel Ödegaard

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

parent c0353ab5
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment