Geomap: Fix tooltip display option (#55956) (#55965)

(cherry picked from commit b0cd511ecc)

Co-authored-by: Drew Slobodnjak <60050885+drew08t@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot) 2022-09-29 00:55:23 +00:00 committed by GitHub
parent 9b0d2034dc
commit db9b11c650
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)} />;
},
};