fix: ensure panel.datasource is null as default

This commit is contained in:
Torkel Ödegaard 2017-10-03 12:18:22 +02:00
parent 4c4564b138
commit 3dac77468b
2 changed files with 4 additions and 3 deletions

View File

@ -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 = [{}];

View File

@ -45,8 +45,8 @@ module.exports = merge(common, {
names: ['vendor', 'manifest'],
}),
new WebpackCleanupPlugin(),
new BundleAnalyzerPlugin({
analyzerPort: 8889
})
// new BundleAnalyzerPlugin({
// analyzerPort: 8889
// })
]
});