Skip to content

Commit

Permalink
fix: tz input source
Browse files Browse the repository at this point in the history
  • Loading branch information
RabahZeineddine committed Oct 12, 2023
1 parent 6fde748 commit 4601fce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/inputs/TzTimeInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 4601fce

Please sign in to comment.