Add key to profiles map

This commit is contained in:
z0ccc 2022-05-13 01:01:26 -04:00
parent 10cd4dedce
commit b9b8523eb0

View file

@ -33,7 +33,9 @@ const ProfileSelect = ({ profile, setProfile }) => {
<option value="custom">Custom</option> <option value="custom">Custom</option>
<optgroup label="Locations"> <optgroup label="Locations">
{Object.keys(profiles).map((key) => ( {Object.keys(profiles).map((key) => (
<option value={key}>{profiles[key].name}</option> <option value={key} key={key}>
{profiles[key].name}
</option>
))} ))}
</optgroup> </optgroup>
</select> </select>