Skip to content
Snippets Groups Projects
Verified Commit 8667ad72 authored by Defendi Alberto's avatar Defendi Alberto
Browse files

Set null initial state to prevent null dates.

parent 99a7f299
No related branches found
No related tags found
2 merge requests!85Implement the remaining api calls to make possible to link a driver shift with a reservation.,!75Resolve "Driver shift page where driver inserts shift."
...@@ -19,6 +19,7 @@ export const ControlledDateTimePicker: FC<DateTimePickerPropsType> = ({ ...@@ -19,6 +19,7 @@ export const ControlledDateTimePicker: FC<DateTimePickerPropsType> = ({
<Controller <Controller
control={control} control={control}
name={name} name={name}
defaultValue={null}
as={({ ref, ...rest }) => ( as={({ ref, ...rest }) => (
<KeyboardDateTimePicker <KeyboardDateTimePicker
margin="normal" margin="normal"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment