Skip to content

Commit d4a634c

Browse files
committed
fix: added checks for dashboard to get graph type dataframe
1 parent bc27b9e commit d4a634c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/datasource.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export class DataSource
237237
private createDataFrame(hits: any[], target: MyQuery, options: DataQueryRequest<MyQuery>, currentCache: CachedQuery): any {
238238
const mode = target.displayMode || 'auto';
239239

240-
if (mode === 'graph' || target?.refId?.includes(REF_ID_STARTER_LOG_VOLUME)) {
240+
if (mode === 'graph' || target?.refId?.includes(REF_ID_STARTER_LOG_VOLUME) || options.app === 'panel-editor' || options.app === 'dashboard') {
241241
const graphDf = getGraphDataFrame(hits, target, options.app, this.histogramTimestampColumn);
242242
currentCache.promise?.resolve(graphDf);
243243
return graphDf;
@@ -258,7 +258,7 @@ export class DataSource
258258
}
259259

260260
const mode = target.displayMode || 'auto';
261-
if (mode === 'graph' || target?.refId?.includes(REF_ID_STARTER_LOG_VOLUME)) {
261+
if (mode === 'graph' || target?.refId?.includes(REF_ID_STARTER_LOG_VOLUME) || options.app === 'panel-editor' || options.app === 'dashboard') {
262262
const graphDf = getGraphDataFrame([], target, options.app, this.histogramTimestampColumn);
263263
currentCache.promise?.resolve(graphDf);
264264
return graphDf;

0 commit comments

Comments
 (0)