diff --git a/website/src/repl/panel/AudioDeviceSelector.jsx b/website/src/repl/panel/AudioDeviceSelector.jsx
index afdaff00..a90b3dcd 100644
--- a/website/src/repl/panel/AudioDeviceSelector.jsx
+++ b/website/src/repl/panel/AudioDeviceSelector.jsx
@@ -52,10 +52,17 @@ export function AudioDeviceSelector({ audioDeviceName, onChange }) {
onChange(deviceName);
deviceID && setAudioDevice(deviceID);
};
- const options = new Set();
-
+ const options = new Map();
Array.from(devices.keys()).forEach((deviceName) => {
- options.add({ id: deviceName, label: deviceName });
+ options.set(deviceName, deviceName);
});
- return ;
+ return (
+
+ );
}
diff --git a/website/src/repl/panel/SelectInput.jsx b/website/src/repl/panel/SelectInput.jsx
index 53f958b8..6693d669 100644
--- a/website/src/repl/panel/SelectInput.jsx
+++ b/website/src/repl/panel/SelectInput.jsx
@@ -1,16 +1,19 @@
import React from 'react';
-// value: ID, options: Set<{id: ID, label: string}>, onChange: ID => null, onClick: event => void
-export function SelectInput({ value, options, onChange, onClick }) {
+// value: ?ID, options: Map, onChange: ID => null, onClick: event => void, placeholder?: string
+export function SelectInput({ value, options, onChange, onClick, placeholder }) {
return (