mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-24 22:22:50 -05:00
Fix overlay crash on undefined stream data
This commit is contained in:
@@ -35,7 +35,7 @@ function Overlay({ config, views, streams }) {
|
|||||||
const isBlurred = viewState.matches('displaying.running.video.blurred')
|
const isBlurred = viewState.matches('displaying.running.video.blurred')
|
||||||
const isLoading = viewState.matches('displaying.loading')
|
const isLoading = viewState.matches('displaying.loading')
|
||||||
const hasTitle = data && (data.label || data.source)
|
const hasTitle = data && (data.label || data.source)
|
||||||
const position = data.labelPosition ?? 'top-left'
|
const position = data?.labelPosition ?? 'top-left'
|
||||||
return (
|
return (
|
||||||
<SpaceBorder
|
<SpaceBorder
|
||||||
pos={pos}
|
pos={pos}
|
||||||
|
|||||||
Reference in New Issue
Block a user