Skip to content

Commit 947dc39

Browse files
committed
Fix typing issue
1 parent 35e6cb7 commit 947dc39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/QueryEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { JsonPathQueryField } from './JsonPathQueryField';
99
type Props = QueryEditorProps<DataSource, JsonApiQuery, JsonApiDataSourceOptions>;
1010

1111
export const QueryEditor: React.FC<Props> = ({ onRunQuery, onChange, query }) => {
12-
const { fields } = defaults(query, { ...defaultQuery, fields: [{ name: '', jsonPath: '' }] });
12+
const { fields } = defaults(query, { ...defaultQuery, fields: [{ name: '', jsonPath: '' }] }) as JsonApiQuery;
1313

1414
const onChangePath = (i: number) => (e: string) => {
1515
fields[i] = { ...fields[i], jsonPath: e };

0 commit comments

Comments
 (0)