mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
(cherry picked from commit b0cd511ecc
)
Co-authored-by: Drew Slobodnjak <60050885+drew08t@users.noreply.github.com>
This commit is contained in:
parent
9b0d2034dc
commit
db9b11c650
@ -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)} />;
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user