Plugins: add a bundle plugins folder (#20850)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { toDataFrame, DataFrameDTO, toCSV } from '@grafana/data';
|
||||
|
||||
export function dataFrameToCSV(dto?: DataFrameDTO[]) {
|
||||
if (!dto || !dto.length) {
|
||||
return '';
|
||||
}
|
||||
return toCSV(dto.map(v => toDataFrame(v)));
|
||||
}
|
||||
Reference in New Issue
Block a user