Set default values for query type selector

This commit is contained in:
Ivana
2021-09-21 13:08:43 +02:00
parent 1f93c9f57b
commit ed938fd006
@@ -18,6 +18,10 @@ export const PromExploreQueryEditor: FC<Props> = (props: Props) => {
if (query.exemplar === undefined) {
onChange({ ...query, exemplar: true });
}
if (!query.instant && !query.range) {
onChange({ ...query, instant: true, range: true });
}
}, [onChange, query]);
function onChangeQueryStep(value: string) {