From b991fe8f797b593c27196ead8e270031ec4e737f Mon Sep 17 00:00:00 2001 From: Luca Cannarozzo Date: Fri, 20 Oct 2023 12:08:05 +0200 Subject: [PATCH] fix(video-end): the time picker must start from 0 value --- src/pages/UxDashboard/UxForm/VideoParts/VideoPart.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/UxDashboard/UxForm/VideoParts/VideoPart.tsx b/src/pages/UxDashboard/UxForm/VideoParts/VideoPart.tsx index 29d641be..ad0ce733 100644 --- a/src/pages/UxDashboard/UxForm/VideoParts/VideoPart.tsx +++ b/src/pages/UxDashboard/UxForm/VideoParts/VideoPart.tsx @@ -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,