Skip to content

Commit

Permalink
Toggle sourcemapChecked state
Browse files Browse the repository at this point in the history
Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
  • Loading branch information
gbamparop and cauemarcondes authored Dec 7, 2021
1 parent 09ed6bf commit 7fc9deb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export function CreateAgentKeyFlyout({ onCancel, onSuccess, onError }: Props) {
id={htmlIdGenerator()()}
label="sourcemap:write"
checked={sourcemapChecked}
onChange={() => setSourcemapChecked(!sourcemapChecked)}
onChange={() => setSourcemapChecked(state => !state)}
/>
</EuiFormRow>
<EuiSpacer size="s" />
Expand Down

0 comments on commit 7fc9deb

Please sign in to comment.