mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
Prometheus/Loki: Fixes the query type option when multiple queries present (#47846)
This commit is contained in:
parent
01c22ee366
commit
68aac0bd90
@ -58,12 +58,7 @@ export const LokiQueryBuilderOptions = React.memo<Props>(({ query, onChange, onR
|
||||
/>
|
||||
</EditorField>
|
||||
<EditorField label="Type">
|
||||
<RadioButtonGroup
|
||||
id="options.query.type"
|
||||
options={queryTypeOptions}
|
||||
value={queryType}
|
||||
onChange={onQueryTypeChange}
|
||||
/>
|
||||
<RadioButtonGroup options={queryTypeOptions} value={queryType} onChange={onQueryTypeChange} />
|
||||
</EditorField>
|
||||
{showMaxLines && (
|
||||
<EditorField label="Line limit" tooltip="Upper limit for number of log lines returned by query.">
|
||||
|
@ -75,12 +75,7 @@ export const PromQueryBuilderOptions = React.memo<Props>(({ query, app, onChange
|
||||
<Select value={formatOption} allowCustomValue onChange={onChangeFormat} options={FORMAT_OPTIONS} />
|
||||
</EditorField>
|
||||
<EditorField label="Type">
|
||||
<RadioButtonGroup
|
||||
id="options.query.type"
|
||||
options={queryTypeOptions}
|
||||
value={queryTypeValue}
|
||||
onChange={onQueryTypeChange}
|
||||
/>
|
||||
<RadioButtonGroup options={queryTypeOptions} value={queryTypeValue} onChange={onQueryTypeChange} />
|
||||
</EditorField>
|
||||
{shouldShowExemplarSwitch(query, app) && (
|
||||
<EditorField label="Exemplars">
|
||||
|
Loading…
Reference in New Issue
Block a user