Prometheus: Remove running of query on raw query toggle (#47938) (#47939)

(cherry picked from commit 5c4459a723)

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2022-04-20 14:37:54 +02:00
committed by GitHub
co-authored by Ivana Huckova
parent 0508656182
commit f7683af8b5
@@ -46,7 +46,6 @@ export const PromQueryEditorSelector = React.memo<PromQueryEditorProps>((props)
const onQueryPreviewChange = (event: SyntheticEvent<HTMLInputElement>) => {
const isEnabled = event.currentTarget.checked;
onChange({ ...query, rawQuery: isEnabled });
onRunQuery();
};
const onChangeInternal = (query: PromQuery) => {