mirror of
https://github.com/grafana/grafana.git
synced 2025-09-25 17:04:10 +08:00
plugins: return table with empty rows array insteaf of nil
This commit is contained in:
@ -125,6 +125,7 @@ func (tw *DatasourcePluginWrapper) mapTable(t *datasource.Table) (*tsdb.Table, e
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.Rows = make([]tsdb.RowValues, 0)
|
||||||
for _, r := range t.GetRows() {
|
for _, r := range t.GetRows() {
|
||||||
row := tsdb.RowValues{}
|
row := tsdb.RowValues{}
|
||||||
for _, rv := range r.Values {
|
for _, rv := range r.Values {
|
||||||
|
Reference in New Issue
Block a user