mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-16 08:15:48 +00:00
Fix date parsing in DatePickerInput
This commit is contained in:
@@ -7,7 +7,7 @@ import {useState} from "react";
|
|||||||
export default function DatePickerInput({label, showErrorUntouched = false, ...props}) {
|
export default function DatePickerInput({label, showErrorUntouched = false, ...props}) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const [field, meta] = useField(props);
|
const [field, meta] = useField(props);
|
||||||
const [value, setValue] = useState<DateValue | null>(parseDate(field.value));
|
const [value, setValue] = useState<DateValue | null>(field.value ? parseDate(field.value) : null);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DatePicker
|
<DatePicker
|
||||||
|
|||||||
Reference in New Issue
Block a user