Default to replay view when editing a liveststream

This commit is contained in:
Dan Peterson 2021-12-31 10:38:11 -06:00 committed by Thomas Zarebczan
parent 16e99fc063
commit 6b809e76c4

View file

@ -142,7 +142,12 @@ function PublishFile(props: Props) {
// Initialize default file source state. // Initialize default file source state.
useEffect(() => { 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); changeFileSelectSource(SOURCE_NONE);
} else if (showSourceSelector && name) { } else if (showSourceSelector && name) {
changeFileSelectSource(SOURCE_SELECT); changeFileSelectSource(SOURCE_SELECT);