clear/reset release time if switching to livestream mode

This commit is contained in:
Dan Peterson 2021-12-30 10:22:57 -06:00 committed by Thomas Zarebczan
parent 1c58b6a10c
commit a92e9c9973

View file

@ -560,6 +560,13 @@ function PublishForm(props: Props) {
}
}, [mode, updatePublishForm]);
// Reset any set release time if switching to live stream mode.
useEffect(() => {
if (mode === PUBLISH_MODES.LIVESTREAM) {
updatePublishForm({ releaseTimeEdited: undefined });
}
}, [mode, updatePublishForm]);
if (publishing) {
return (
<div className="main--empty">