From 3dac77468bcc5c814a9a93a2cf603aea9126da2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 3 Oct 2017 12:18:22 +0200 Subject: [PATCH] fix: ensure panel.datasource is null as default --- public/app/features/panel/metrics_panel_ctrl.ts | 1 + scripts/webpack/webpack.dev.js | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/public/app/features/panel/metrics_panel_ctrl.ts b/public/app/features/panel/metrics_panel_ctrl.ts index 38d9c631b54..839dbba72e8 100644 --- a/public/app/features/panel/metrics_panel_ctrl.ts +++ b/public/app/features/panel/metrics_panel_ctrl.ts @@ -41,6 +41,7 @@ class MetricsPanelCtrl extends PanelCtrl { this.timeSrv = $injector.get('timeSrv'); this.templateSrv = $injector.get('templateSrv'); this.scope = $scope; + this.panel.datasource = this.panel.datasource || null; if (!this.panel.targets) { this.panel.targets = [{}]; diff --git a/scripts/webpack/webpack.dev.js b/scripts/webpack/webpack.dev.js index 51b9a646175..ab48864b8a0 100644 --- a/scripts/webpack/webpack.dev.js +++ b/scripts/webpack/webpack.dev.js @@ -45,8 +45,8 @@ module.exports = merge(common, { names: ['vendor', 'manifest'], }), new WebpackCleanupPlugin(), - new BundleAnalyzerPlugin({ - analyzerPort: 8889 - }) + // new BundleAnalyzerPlugin({ + // analyzerPort: 8889 + // }) ] });