mirror of
https://github.com/grafana/grafana.git
synced 2025-01-27 16:57:14 -06:00
fix: ensure panel.datasource is null as default
This commit is contained in:
parent
4c4564b138
commit
3dac77468b
@ -41,6 +41,7 @@ class MetricsPanelCtrl extends PanelCtrl {
|
|||||||
this.timeSrv = $injector.get('timeSrv');
|
this.timeSrv = $injector.get('timeSrv');
|
||||||
this.templateSrv = $injector.get('templateSrv');
|
this.templateSrv = $injector.get('templateSrv');
|
||||||
this.scope = $scope;
|
this.scope = $scope;
|
||||||
|
this.panel.datasource = this.panel.datasource || null;
|
||||||
|
|
||||||
if (!this.panel.targets) {
|
if (!this.panel.targets) {
|
||||||
this.panel.targets = [{}];
|
this.panel.targets = [{}];
|
||||||
|
@ -45,8 +45,8 @@ module.exports = merge(common, {
|
|||||||
names: ['vendor', 'manifest'],
|
names: ['vendor', 'manifest'],
|
||||||
}),
|
}),
|
||||||
new WebpackCleanupPlugin(),
|
new WebpackCleanupPlugin(),
|
||||||
new BundleAnalyzerPlugin({
|
// new BundleAnalyzerPlugin({
|
||||||
analyzerPort: 8889
|
// analyzerPort: 8889
|
||||||
})
|
// })
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user