Skip to content

Commit

Permalink
Fix Z-wave USB settings list (#1160)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Gilles authored Apr 22, 2021
1 parent 2d1af7c commit 4cf4752
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,16 @@ const SettingsTab = ({ children, ...props }) => (
<Text id="global.emptySelectOption" />
</option>
{props.usbPorts &&
props.usbPorts.map(usbPort => (
<option value={usbPort.comPath} selected={props.zwaveDriverPath === usbPort.comPath}>
{usbPort.comName}
</option>
))}
props.usbPorts.map(
usbPort =>
usbPort.comPath && (
<option value={usbPort.comPath} selected={props.zwaveDriverPath === usbPort.comPath}>
{usbPort.comPath}
{usbPort.comName ? ` - ${usbPort.comName}` : ''}
{usbPort.comVID ? ` - ${usbPort.comVID}` : ''}
</option>
)
)}
</select>
</div>
<div class="form-group">
Expand Down

0 comments on commit 4cf4752

Please sign in to comment.