Geomap: Fix tooltip display option (#55956)

This commit is contained in:
Drew Slobodnjak 2022-09-28 15:21:21 -07:00 committed by GitHub
parent 16c9c858b8
commit b0cd511ecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,8 @@ export const getAllOptionEditors = () => {
name: 'Boolean',
description: 'Allows boolean values input',
editor(props) {
return <Switch {...props} onChange={(e) => props.onChange(e.currentTarget.checked)} />;
const { id, ...rest } = props; // Remove id from properties passed into switch
return <Switch {...rest} onChange={(e) => props.onChange(e.currentTarget.checked)} />;
},
};