readd device num to serial page (#727)

This commit is contained in:
Dan Ditomaso
2025-07-20 14:54:43 -04:00
committed by GitHub
parent bfe4e01c85
commit 09d6556abd
2 changed files with 6 additions and 5 deletions
@@ -52,7 +52,7 @@ export const Serial = ({ closeDialog }: TabElementProps) => {
disabled={connectionInProgress}
>
<div className="flex h-48 flex-col gap-2 overflow-y-auto">
{serialPorts.map((port) => {
{serialPorts.map((port, idx) => {
const { usbProductId, usbVendorId } = port.getInfo();
const vendor = usbVendorId ?? t("unknown.shortName");
const product = usbProductId ?? t("unknown.shortName");
@@ -70,6 +70,7 @@ export const Serial = ({ closeDialog }: TabElementProps) => {
{t("newDeviceDialog.serialConnection.deviceIdentifier", {
vendorId: vendor,
productId: product,
index: idx,
})}
</Button>
);