From 2816dfbb92a32ce6db1ca737fb9a859f1c9a411f Mon Sep 17 00:00:00 2001 From: Max Goodhart Date: Thu, 2 Jul 2020 14:07:37 -0700 Subject: [PATCH] Fix pruning of empty entries in the custom streams list --- src/web/control.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/control.js b/src/web/control.js index 59abeeb..27d8ae4 100644 --- a/src/web/control.js +++ b/src/web/control.js @@ -196,7 +196,7 @@ function App({ wsEndpoint }) { const handleChangeCustomStream = useCallback((idx, customStream) => { let newCustomStreams = [...customStreams] newCustomStreams[idx] = customStream - newCustomStreams = newCustomStreams.filter((s) => s.kind) + newCustomStreams = newCustomStreams.filter((s) => s.label || s.link) wsRef.current.send( JSON.stringify({ type: 'set-custom-streams',