Default to replay view when editing a liveststream
This commit is contained in:
parent
16e99fc063
commit
6b809e76c4
1 changed files with 6 additions and 1 deletions
|
@ -142,7 +142,12 @@ function PublishFile(props: Props) {
|
|||
|
||||
// Initialize default file source state.
|
||||
useEffect(() => {
|
||||
if (isLivestreamClaim || mode === PUBLISH_MODES.LIVESTREAM) {
|
||||
// Editing a livestream
|
||||
if (isLivestreamClaim) {
|
||||
changeFileSelectSource(SOURCE_SELECT);
|
||||
}
|
||||
// Publishing a livestream
|
||||
else if (mode === PUBLISH_MODES.LIVESTREAM) {
|
||||
changeFileSelectSource(SOURCE_NONE);
|
||||
} else if (showSourceSelector && name) {
|
||||
changeFileSelectSource(SOURCE_SELECT);
|
||||
|
|
Loading…
Reference in a new issue