diff --git a/public/app/core/components/OptionsUI/registry.tsx b/public/app/core/components/OptionsUI/registry.tsx index d9ece7c8451..817287f524d 100644 --- a/public/app/core/components/OptionsUI/registry.tsx +++ b/public/app/core/components/OptionsUI/registry.tsx @@ -81,7 +81,8 @@ export const getAllOptionEditors = () => { name: 'Boolean', description: 'Allows boolean values input', editor(props) { - return props.onChange(e.currentTarget.checked)} />; + const { id, ...rest } = props; // Remove id from properties passed into switch + return props.onChange(e.currentTarget.checked)} />; }, };