From 313dc91a5d9534f0d41da5f0e22a059a61611874 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Fri, 20 Oct 2023 18:15:18 +0000 Subject: [PATCH] move devices with transport up in the list --- src/components/specification/DeviceSpecificationList.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/specification/DeviceSpecificationList.tsx b/src/components/specification/DeviceSpecificationList.tsx index 112a9af5734a..c1d136a52e24 100644 --- a/src/components/specification/DeviceSpecificationList.tsx +++ b/src/components/specification/DeviceSpecificationList.tsx @@ -122,6 +122,9 @@ export default function DeviceSpecificationList(props: { -(a.tags?.indexOf("kit") > -1 ? 1 : 0) + (b.tags?.indexOf("kit") > -1 ? 1 : 0) if (c) return c + // device with transports + c = -(a.transport ? 1 : 0) + (b.transport ? 1 : 0) + if (c) return c // use ec30 shape c = -(isEC30(a.shape) ? 1 : 0) + (isEC30(b.shape) ? 1 : 0) if (c) return c