Reset any set release time if switching to live stream mode.
This commit is contained in:
parent
4ec4942d8c
commit
fef289e4fe
1 changed files with 7 additions and 0 deletions
|
@ -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 (
|
||||
<div className="main--empty">
|
||||
|
|
Loading…
Reference in a new issue