Annotations: fixes reversed switch (#33362)

This commit is contained in:
Hugo Häggmark
2021-04-26 09:05:22 +02:00
committed by GitHub
parent cf2d557974
commit ba2fa3434e

View File

@@ -23,7 +23,7 @@ export const Annotations: FunctionComponent<Props> = ({ annotations, onAnnotatio
return (
<div key={annotation.name} className={'submenu-item'}>
<InlineField label={annotation.name}>
<InlineSwitch checked={annotation.enable} onChange={() => onAnnotationChanged(annotation)} />
<InlineSwitch value={annotation.enable} onChange={() => onAnnotationChanged(annotation)} />
</InlineField>
</div>
);