mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
Elasticsearch: Fix toggle-settings are not shown correctly (#61751)
* changed `checked` propery to `value` * revert changing the prop in the event
This commit is contained in:
@@ -125,7 +125,7 @@ export const ElasticDetails = ({ value, onChange }: Props) => {
|
||||
<InlineField label="X-Pack enabled" labelWidth={26}>
|
||||
<InlineSwitch
|
||||
id="es_config_xpackEnabled"
|
||||
checked={value.jsonData.xpack || false}
|
||||
value={value.jsonData.xpack || false}
|
||||
onChange={jsonDataSwitchChangeHandler('xpack', value, onChange)}
|
||||
/>
|
||||
</InlineField>
|
||||
@@ -134,7 +134,7 @@ export const ElasticDetails = ({ value, onChange }: Props) => {
|
||||
<InlineField label="Include Frozen Indices" labelWidth={26}>
|
||||
<InlineSwitch
|
||||
id="es_config_frozenIndices"
|
||||
checked={value.jsonData.includeFrozen ?? false}
|
||||
value={value.jsonData.includeFrozen ?? false}
|
||||
onChange={jsonDataSwitchChangeHandler('includeFrozen', value, onChange)}
|
||||
/>
|
||||
</InlineField>
|
||||
|
||||
Reference in New Issue
Block a user