From a5b6f7fe5d0075248a0b2201960265bda2617370 Mon Sep 17 00:00:00 2001 From: Max Goodhart Date: Thu, 2 Jul 2020 14:07:24 -0700 Subject: [PATCH] Fix non-initialized link field causing inputs to not be emptied --- 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 eaf831e..59abeeb 100644 --- a/src/web/control.js +++ b/src/web/control.js @@ -307,7 +307,7 @@ function App({ wsEndpoint }) { Include an empty object at the end to create an extra input for a new custom stream. We need it to be part of the array (rather than JSX below) for DOM diffing to match the key and retain focus. */} - {[...customStreams, { kind: '', label: '', kind: 'video' }].map( + {[...customStreams, { link: '', label: '', kind: 'video' }].map( ({ link, label, kind }, idx) => (