Fix pruning of empty entries in the custom streams list

This commit is contained in:
Max Goodhart
2020-07-02 14:07:37 -07:00
parent a5b6f7fe5d
commit 2816dfbb92

View File

@@ -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',