From a92e9c9973619a4d5dcf5e00ca5ba2b7021d624c Mon Sep 17 00:00:00 2001 From: Dan Peterson Date: Thu, 30 Dec 2021 10:22:57 -0600 Subject: [PATCH] clear/reset release time if switching to livestream mode --- ui/component/publishForm/view.jsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ui/component/publishForm/view.jsx b/ui/component/publishForm/view.jsx index aa11ca2d3..ffc4a8467 100644 --- a/ui/component/publishForm/view.jsx +++ b/ui/component/publishForm/view.jsx @@ -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 (