From f40855a8001d9a521604da6133b5911fe59f52cf Mon Sep 17 00:00:00 2001 From: Roman M Date: Sat, 19 Oct 2024 15:41:47 +0200 Subject: [PATCH] fix typo --- src/datasource/datasource.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/datasource/datasource.ts b/src/datasource/datasource.ts index 3fec08b2d..bf77407ca 100644 --- a/src/datasource/datasource.ts +++ b/src/datasource/datasource.ts @@ -20,7 +20,6 @@ import SqlQueryMacros from './sql-query/sql-query-macros'; import { QueryEditor } from "../views/QueryEditor/QueryEditor"; const adhocFilterVariable = 'adhoc_query_filter'; -let recentRequest; export class CHDataSource extends DataSourceApi @@ -149,7 +148,7 @@ export return dataRequest } - async getLogRowContext(row: LogRowModel, options?: LogRowContextOptions | undefined, query?: CHQuery | undefined): Promise<{data: Array}> { + async getLogRowContext(row: LogRowModel, options?: LogRowContextOptions | undefined, query?: CHQuery | undefined): Promise<{data: any[]}> { let traceId; const requestOptions = {...options, range: this.options.range} @@ -157,9 +156,7 @@ export const originalQuery = this.createQuery(requestOptions, query) let scanner = new Scanner(originalQuery.stmt.replace(/\r\n|\r|\n/g, ' ')); - let { - select - } = scanner.toAST(); + let { select } = scanner.toAST(); const generateQueryForTraceID = (traceId, select) => {