mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
small fix for new variable editor types (#55195)
This commit is contained in:
parent
5561f935e6
commit
331f3e2a58
@ -30,14 +30,21 @@ export const GraphiteVariableEditor = (props: Props) => {
|
||||
width={25}
|
||||
value={value.queryType ?? GraphiteQueryType.Default}
|
||||
onChange={(selectableValue) => {
|
||||
onChange({
|
||||
setValue({
|
||||
...value,
|
||||
queryType: selectableValue.value,
|
||||
});
|
||||
|
||||
if (value.target) {
|
||||
onChange({
|
||||
...value,
|
||||
queryType: selectableValue.value,
|
||||
});
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</InlineField>
|
||||
<InlineField label="Select query type" labelWidth={20} grow>
|
||||
<InlineField label="Query" labelWidth={20} grow>
|
||||
<Input
|
||||
aria-label="Variable editor query input"
|
||||
value={value.target}
|
||||
|
Loading…
Reference in New Issue
Block a user