We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35e6cb7 commit 947dc39Copy full SHA for 947dc39
src/components/QueryEditor.tsx
@@ -9,7 +9,7 @@ import { JsonPathQueryField } from './JsonPathQueryField';
9
type Props = QueryEditorProps<DataSource, JsonApiQuery, JsonApiDataSourceOptions>;
10
11
export const QueryEditor: React.FC<Props> = ({ onRunQuery, onChange, query }) => {
12
- const { fields } = defaults(query, { ...defaultQuery, fields: [{ name: '', jsonPath: '' }] });
+ const { fields } = defaults(query, { ...defaultQuery, fields: [{ name: '', jsonPath: '' }] }) as JsonApiQuery;
13
14
const onChangePath = (i: number) => (e: string) => {
15
fields[i] = { ...fields[i], jsonPath: e };
0 commit comments