mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 10:02:33 +08:00
fix: ensure panel.datasource is null as default
This commit is contained in:
@ -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 = [{}];
|
||||
|
@ -45,8 +45,8 @@ module.exports = merge(common, {
|
||||
names: ['vendor', 'manifest'],
|
||||
}),
|
||||
new WebpackCleanupPlugin(),
|
||||
new BundleAnalyzerPlugin({
|
||||
analyzerPort: 8889
|
||||
})
|
||||
// new BundleAnalyzerPlugin({
|
||||
// analyzerPort: 8889
|
||||
// })
|
||||
]
|
||||
});
|
||||
|
Reference in New Issue
Block a user