clear/reset release time if switching to livestream mode
This commit is contained in:
parent
1c58b6a10c
commit
a92e9c9973
1 changed files with 7 additions and 0 deletions
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue