Skip to content

Commit

Permalink
fix typecheck error
Browse files Browse the repository at this point in the history
  • Loading branch information
hegdeshruti23 committed Jan 27, 2025
1 parent ec9dc60 commit 4946fce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/QueryHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import { SelectableValue } from '@grafana/data';
import { EditorField, EditorHeader, EditorMode, EditorRow, FlexItem, InlineSelect, Space } from '@grafana/experimental';
import { Button, InlineSwitch, RadioButtonGroup, Tooltip } from '@grafana/ui';
Expand Down
2 changes: 1 addition & 1 deletion src/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class BigQueryDatasource extends DataSourceWithBackend<BigQueryQueryNG, B
}

applyTemplateVariables(queryModel: BigQueryQueryNG, scopedVars: ScopedVars): QueryModel {
const interpolatedSql = getTemplateSrv().replace(queryModel.rawSql, scopedVars, interpolateVariable).replace("$__bqlProject", queryModel.project);
const interpolatedSql = getTemplateSrv().replace(queryModel.rawSql, scopedVars, interpolateVariable).replace("$__bqlProject", queryModel.project==undefined? "" : queryModel.project);

Check failure on line 104 in src/datasource.ts

View workflow job for this annotation

GitHub Actions / Build, lint and unit tests

Replace `.replace(queryModel.rawSql,·scopedVars,·interpolateVariable).replace("$__bqlProject",·queryModel.project==undefined?·""` with `⏎······.replace(queryModel.rawSql,·scopedVars,·interpolateVariable)⏎······.replace('$__bqlProject',·queryModel.project·==·undefined·?·''`

Check failure on line 104 in src/datasource.ts

View workflow job for this annotation

GitHub Actions / Build, lint and unit tests

Expected '===' and instead saw '=='

Check failure on line 105 in src/datasource.ts

View workflow job for this annotation

GitHub Actions / Build, lint and unit tests

Delete `····`
const result = {
refId: queryModel.refId,
Expand Down

0 comments on commit 4946fce

Please sign in to comment.