mirror of
https://github.com/owncast/owncast.git
synced 2024-11-26 06:46:01 +03:00
Guard against null broadcaster. Hopefully addresses #635
This commit is contained in:
parent
b37b57feda
commit
29e598d248
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ export default function MainLayout(props) {
|
|||
const { SubMenu } = Menu;
|
||||
|
||||
// status indicator items
|
||||
const streamDurationString = online ? parseSecondsToDurationString(differenceInSeconds(new Date(), new Date(broadcaster.time))) : "";
|
||||
const streamDurationString = broadcaster ? parseSecondsToDurationString(differenceInSeconds(new Date(), new Date(broadcaster.time))) : "";
|
||||
const currentThumbnail = online ? (
|
||||
<img src="/thumbnail.jpg" className={adminStyles.onlineCurrentThumb} alt="current thumbnail" />
|
||||
) : null;
|
||||
|
|
Loading…
Reference in a new issue