Skip to content

Commit

Permalink
Return true instead of throw exception
Browse files Browse the repository at this point in the history
  • Loading branch information
idrissneumann committed Nov 20, 2023
1 parent 6ee4fd8 commit 650d925
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ import {
TimeRange,
} from '@grafana/data';
import { BucketAggregation, DataLinkConfig, ElasticsearchQuery, Field, FieldMapping, IndexMetadata, Logs, TermsQuery } from './types';
import {
config,
DataSourceWithBackend, getTemplateSrv, TemplateSrv,
} from '@grafana/runtime';
import { DataSourceWithBackend, getTemplateSrv, TemplateSrv } from '@grafana/runtime';
import { LogRowContextOptions, LogRowContextQueryDirection, QuickwitOptions } from 'quickwit';
import { ElasticQueryBuilder } from 'QueryBuilder';
import { colors } from '@grafana/ui';
Expand Down Expand Up @@ -500,7 +497,7 @@ export class QuickwitDataSource
};

showContextToggle(row?: LogRowModel | undefined): boolean {
throw new Error('Method not implemented.');
return true;
}

getLogRowContextUi?(row: LogRowModel, runContextQuery?: (() => void) | undefined): ReactNode {
Expand Down

0 comments on commit 650d925

Please sign in to comment.