diff --git a/src/components/inputs/TzTimeInput/index.tsx b/src/components/inputs/TzTimeInput/index.tsx index 1c88692..4c2edc7 100644 --- a/src/components/inputs/TzTimeInput/index.tsx +++ b/src/components/inputs/TzTimeInput/index.tsx @@ -50,7 +50,7 @@ export function TzTimeInput(props: TzTimeInputProps) { }) const handleValueChange = (newValue: Dayjs | null) => { - if (dateSourceInput.id !== id) { + if (dateSourceInput.id && dateSourceInput.id !== id) { const dateSourceValue = dateSourceInput.field.value as Date newValue?.set('year', dateSourceValue.getUTCFullYear()) newValue?.set('month', dateSourceValue.getUTCMonth())