Fix overlay crash on undefined stream data

This commit is contained in:
Max Goodhart
2020-11-13 18:45:16 -08:00
parent 524bcb5ed1
commit 68c16f3d50

View File

@@ -35,7 +35,7 @@ function Overlay({ config, views, streams }) {
const isBlurred = viewState.matches('displaying.running.video.blurred')
const isLoading = viewState.matches('displaying.loading')
const hasTitle = data && (data.label || data.source)
const position = data.labelPosition ?? 'top-left'
const position = data?.labelPosition ?? 'top-left'
return (
<SpaceBorder
pos={pos}