mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
prevent field config from being overwritten (#30437)
This commit is contained in:
parent
15033d0011
commit
d9d27340b5
@ -126,9 +126,11 @@ func (e *cloudWatchExecutor) transformQueryResponsesToQueryResult(cloudwatchResp
|
||||
continue
|
||||
}
|
||||
|
||||
frame.Fields[1].SetConfig(&data.FieldConfig{
|
||||
Links: createDataLinks(link),
|
||||
})
|
||||
if frame.Fields[1].Config == nil {
|
||||
frame.Fields[1].Config = &data.FieldConfig{}
|
||||
}
|
||||
|
||||
frame.Fields[1].Config.Links = createDataLinks(link)
|
||||
}
|
||||
|
||||
queryResult.Dataframes = tsdb.NewDecodedDataFrames(frames)
|
||||
|
Loading…
Reference in New Issue
Block a user