mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Graph: Preseve existing data links in field config when loading dashboard (#27295)
* Graph: Preseve existing data links in field config * ts fix
This commit is contained in:
@@ -203,6 +203,7 @@ export class PanelModel implements DataConfigSource {
|
||||
getOptions() {
|
||||
return this.options;
|
||||
}
|
||||
|
||||
getFieldConfig() {
|
||||
return this.fieldConfig;
|
||||
}
|
||||
@@ -309,6 +310,7 @@ export class PanelModel implements DataConfigSource {
|
||||
if (plugin.angularConfigCtrl) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.options = _.mergeWith({}, plugin.defaults, this.options || {}, (objValue: any, srcValue: any): any => {
|
||||
if (_.isArray(srcValue)) {
|
||||
return srcValue;
|
||||
|
||||
Reference in New Issue
Block a user