Skip to content

Commit 2fcef12

Browse files
fix: Fixes various bugs found via CI
1 parent 45e4633 commit 2fcef12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/QueryEditor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { ChangeEvent, ReactNode } from 'react';
2-
import { Button, Field, Form, Icon, InlineField, Input, Select } from '@grafana/ui';
2+
import { Button, Field, Form, Icon, Input, Select } from '@grafana/ui';
33
import { QueryEditorProps, SelectableValue } from '@grafana/data';
44
import { DataSource } from '../datasource';
55
import { DEFAULT_QUERY, HaystackDataSourceOptions, HaystackQuery } from '../types';
@@ -28,7 +28,7 @@ export function QueryEditor({ query, onChange, onRunQuery }: Props) {
2828
];
2929
const queryTypeDefault = queryTypes[0];
3030
function queryTypeFromLabel(label: string) {
31-
return queryTypes.find(queryType => queryType.label == label) ?? queryTypeDefault
31+
return queryTypes.find(queryType => queryType.label === label) ?? queryTypeDefault
3232
}
3333

3434
const SelectComponent = () => {

0 commit comments

Comments
 (0)