Skip to content

Commit

Permalink
Elasticsearch: Fix toggle-settings are not shown correctly (#61751)
Browse files Browse the repository at this point in the history
* changed `checked` propery to `value`

* revert changing the prop in the event
  • Loading branch information
svennergr committed Jan 19, 2023
1 parent 134ca6b commit dd8f95a
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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>
Expand All @@ -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>
Expand Down

0 comments on commit dd8f95a

Please sign in to comment.