X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/b02573dbdd8dae7c2f9bdafa2f6ac847168b024a..bf7a90e5d5d606456e0ec51cc2709d2f1da76d7d:/src/components/switch-field/switch-field.tsx

diff --git a/src/components/switch-field/switch-field.tsx b/src/components/switch-field/switch-field.tsx
index 4541e371..0c63a36c 100644
--- a/src/components/switch-field/switch-field.tsx
+++ b/src/components/switch-field/switch-field.tsx
@@ -2,13 +2,13 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import * as React from 'react';
-import { FormFieldProps, FormField } from '~/components/form-field/form-field';
+import React from 'react';
+import { FormFieldProps, FormField } from 'components/form-field/form-field';
 import { Switch } from '@material-ui/core';
 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>;
 
