SSE: Keep value name from numeric table (#58831)

fixes #48868
This commit is contained in:
Kyle Brandt 2022-11-16 10:39:28 -05:00 committed by GitHub
parent f2066398f0
commit 1953d473c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -389,7 +389,7 @@ func extractNumberSet(frame *data.Frame) ([]mathexp.Number, error) {
labels[key] = val.(string) // TODO check assertion / return error
}
n := mathexp.NewNumber("", labels)
n := mathexp.NewNumber(frame.Fields[numericField].Name, labels)
// The new value fields' configs gets pointed to the one in the original frame
n.Frame.Fields[0].Config = frame.Fields[numericField].Config