Skip to content

Commit

Permalink
Don't pass stateSetter prop through to checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Jan 23, 2020
1 parent 212a1a3 commit 46c5cab
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,10 @@ export function DevToolsSettingsModal(props: Props) {
}
>
<EuiCheckboxGroup
options={autoCompleteCheckboxes}
options={autoCompleteCheckboxes.map(opts => {
const { stateSetter, ...rest } = opts;
return rest;
})}
idToSelectedMap={checkboxIdToSelectedMap}
onChange={(e: any) => {
onAutocompleteChange(e as AutocompleteOptions);
Expand Down

0 comments on commit 46c5cab

Please sign in to comment.