mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-25 06:32:49 -05:00
Filter offline streams when stream kind prop unset
This commit is contained in:
@@ -11,7 +11,7 @@ const sleep = promisify(setTimeout)
|
||||
function filterLive(data) {
|
||||
return data.filter(
|
||||
({ kind, status }) =>
|
||||
kind !== 'video' || status === 'Live' || status === 'Unknown',
|
||||
(kind && kind !== 'video') || status === 'Live' || status === 'Unknown',
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user