From fef289e4fe4f07d23aaea831093e521eb97723c3 Mon Sep 17 00:00:00 2001 From: Dan Peterson Date: Thu, 30 Dec 2021 10:32:46 -0600 Subject: [PATCH] Reset any set release time if switching to live stream 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 d4df2889d..9b77515f9 100644 --- a/ui/component/publishForm/view.jsx +++ b/ui/component/publishForm/view.jsx @@ -569,6 +569,13 @@ function PublishForm(props: Props) { setShowSchedulingOptions(isLivestreamMode && fileSelectSource === SOURCE_NONE); }, [isLivestreamMode, fileSelectSource]); + // 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 (