diff --git a/gameyfin/src/main/frontend/components/general/input/DatePickerInput.tsx b/gameyfin/src/main/frontend/components/general/input/DatePickerInput.tsx index 57eaee4..9fb3a12 100644 --- a/gameyfin/src/main/frontend/components/general/input/DatePickerInput.tsx +++ b/gameyfin/src/main/frontend/components/general/input/DatePickerInput.tsx @@ -7,7 +7,7 @@ import {useState} from "react"; export default function DatePickerInput({label, showErrorUntouched = false, ...props}) { // @ts-ignore const [field, meta] = useField(props); - const [value, setValue] = useState(parseDate(field.value)); + const [value, setValue] = useState(field.value ? parseDate(field.value) : null); return (