Skip to content

Commit

Permalink
fix(video-end): the time picker must start from 0 value
Browse files Browse the repository at this point in the history
  • Loading branch information
cannarocks committed Oct 20, 2023
1 parent c5967a6 commit b991fe8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/UxDashboard/UxForm/VideoParts/VideoPart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ const VideoPart = ({
form.validateField(field.name);
},
}}
value={moment.utc(field.value * 1000).format("HH:mm:ss")}
value={
!field.value
? "00:00:00"
: moment.utc(field.value * 1000).format("HH:mm:ss")
}
onChange={(value) => {
form.setFieldValue(
field.name,
Expand Down

0 comments on commit b991fe8

Please sign in to comment.