From 99e7dc2ffec87b3870c2ff5c973e49987f8d41eb Mon Sep 17 00:00:00 2001 From: vargburz Date: Thu, 29 Dec 2022 15:53:08 +0300 Subject: [PATCH] add todo --- src/panels/corpglory-dataexporter-panel/components/Panel.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/panels/corpglory-dataexporter-panel/components/Panel.tsx b/src/panels/corpglory-dataexporter-panel/components/Panel.tsx index 3455776..b89828d 100644 --- a/src/panels/corpglory-dataexporter-panel/components/Panel.tsx +++ b/src/panels/corpglory-dataexporter-panel/components/Panel.tsx @@ -43,7 +43,7 @@ export function Panel({ options, data, width, height, timeRange, onChangeTimeRan const refId = queries[0].refId; const rawSql = queries[0].rawSql; const uid = queries[0].datasource.uid; - + // TODO: it works only with sql (rawSql will be empty in prometheus) const isDatasourceExist = _.some( datasources, (ds: DatasourceTableRowConfig) => @@ -52,7 +52,6 @@ export function Panel({ options, data, width, height, timeRange, onChangeTimeRan if (isDatasourceExist) { return; } - const newConfig = createDatasourceConfig({ datasource, refId, rawSql, uid }, timestampRange); setDatasources([...datasources, newConfig]); },