- {device.nodes.get(device.hardware.myNodeNum)?.user
- ?.longName ?? "UNK"}
-
- {device.connection?.connType === "ble" && (
- <>
-
- BLE
- >
- )}
- {device.connection?.connType === "serial" && (
- <>
-
- Serial
- >
- )}
- {device.connection?.connType === "http" && (
- <>
-
- Network
- >
- )}
+
+ {devices.length ? (
+
+ {devices.map((device) => {
+ return (
+ -
+
+
+
+ {device.nodes.get(device.hardware.myNodeNum)?.user
+ ?.longName ?? "UNK"}
+
+
+ {device.connection?.connType === "ble" && (
+ <>
+
+ BLE
+ >
+ )}
+ {device.connection?.connType === "serial" && (
+ <>
+
+ Serial
+ >
+ )}
+ {device.connection?.connType === "http" && (
+ <>
+
+ Network
+ >
+ )}
+
-
-
-
-
- {device.nodes.size === 0 ? 0 : device.nodes.size - 1}
+
+
+
+ {device.nodes.size === 0 ? 0 : device.nodes.size - 1}
+
-
-
- );
- })}
-
- ) : (
-
-
-
No Devices
-
Connect atleast one device to get started
-
-
- )}
+
+ );
+ })}
+
+ ) : (
+
+
+
No Devices
+
Connect atleast one device to get started
+
+
+ )}
+