Merge branch '14644-nanh-nanm-in-subprocess-view'
[arvados-workbench2.git] / src / components / switch-field / switch-field.tsx
index 4541e371a5a2154bbbc26b23ab70572071d65968..ac7b140e1a5591daa9ca92f602aa8651137dbf93 100644 (file)
@@ -9,6 +9,6 @@ import { SwitchProps } from '@material-ui/core/Switch';
 
 export const SwitchField = ({ switchProps, ...props }: FormFieldProps & { switchProps: SwitchProps }) =>
     <FormField {...props}>
-        {input => <Switch {...switchProps} checked={input.checked} onChange={input.onChange} />}
+        {input => <Switch {...switchProps} checked={input.value} onChange={input.onChange} />}
     </FormField>;