瀏覽代碼

plugins: return table with empty rows array insteaf of nil

Alexander Zobnin 8 年之前
父節點
當前提交
db7890ec1e
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      pkg/plugins/datasource/wrapper/datasource_plugin_wrapper.go

+ 1 - 0
pkg/plugins/datasource/wrapper/datasource_plugin_wrapper.go

@@ -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() {
 		row := tsdb.RowValues{}
 		for _, rv := range r.Values {