Commit d9d27340 by Erik Sundell Committed by GitHub

prevent field config from being overwritten (#30437)

parent 15033d00
...@@ -126,9 +126,11 @@ func (e *cloudWatchExecutor) transformQueryResponsesToQueryResult(cloudwatchResp ...@@ -126,9 +126,11 @@ func (e *cloudWatchExecutor) transformQueryResponsesToQueryResult(cloudwatchResp
continue continue
} }
frame.Fields[1].SetConfig(&data.FieldConfig{ if frame.Fields[1].Config == nil {
Links: createDataLinks(link), frame.Fields[1].Config = &data.FieldConfig{}
}) }
frame.Fields[1].Config.Links = createDataLinks(link)
} }
queryResult.Dataframes = tsdb.NewDecodedDataFrames(frames) queryResult.Dataframes = tsdb.NewDecodedDataFrames(frames)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment