mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-31 09:22:49 -05:00
Fix pruning of empty entries in the custom streams list
This commit is contained in:
@@ -196,7 +196,7 @@ function App({ wsEndpoint }) {
|
|||||||
const handleChangeCustomStream = useCallback((idx, customStream) => {
|
const handleChangeCustomStream = useCallback((idx, customStream) => {
|
||||||
let newCustomStreams = [...customStreams]
|
let newCustomStreams = [...customStreams]
|
||||||
newCustomStreams[idx] = customStream
|
newCustomStreams[idx] = customStream
|
||||||
newCustomStreams = newCustomStreams.filter((s) => s.kind)
|
newCustomStreams = newCustomStreams.filter((s) => s.label || s.link)
|
||||||
wsRef.current.send(
|
wsRef.current.send(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
type: 'set-custom-streams',
|
type: 'set-custom-streams',
|
||||||
|
|||||||
Reference in New Issue
Block a user