Skip to content

Commit ef715a9

Browse files
committed
Don't run query on editor change, fixes #70
1 parent 5930032 commit ef715a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/QueryEditor/ElasticsearchQueryContext.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ export const ElasticsearchProvider = ({
4141
const onStateChange = useCallback(
4242
(query: ElasticsearchQuery) => {
4343
onChange(query);
44-
onRunQuery();
4544
},
46-
[onChange, onRunQuery]
45+
[onChange]
4746
);
4847

4948
const reducer = combineReducers<Pick<ElasticsearchQuery, 'query' | 'alias' | 'metrics' | 'bucketAggs'>>({

0 commit comments

Comments
 (0)