mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 04:31:36 +08:00
prevent field config from being overwritten (#30437)
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user