Skip to content

Commit d274eb4

Browse files
Merge pull request #22 from NeedleInAJayStack/fix/dataframe-name
fix: Sets dataframe name correctly
2 parents fab66a5 + 1b1f730 commit d274eb4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pkg/plugin/datasource.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -434,13 +434,12 @@ func dataFrameFromGrid(grid haystack.Grid) (*data.Frame, error) {
434434

435435
frame := data.NewFrame("response", fields...)
436436

437-
switch dis := grid.Meta().Get("dis").(type) {
438-
case haystack.Str:
439-
frame.Name = dis.String()
437+
switch id := grid.Meta().Get("id").(type) {
438+
case haystack.Ref:
439+
frame.Name = id.Dis()
440440
default:
441441
frame.Name = ""
442442
}
443-
444443
return frame, nil
445444
}
446445

0 commit comments

Comments
 (0)