From 9ec5ea327c5839ca0760fb7246bfdeff536e06fe Mon Sep 17 00:00:00 2001 From: Adam Gastineau Date: Wed, 28 Jun 2023 17:00:43 -0700 Subject: [PATCH] Fixed subdevices not sorting, causing the wrong parent to be selected --- support/extraction/src/extract.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/support/extraction/src/extract.ts b/support/extraction/src/extract.ts index 89813ef..7bb9934 100644 --- a/support/extraction/src/extract.ts +++ b/support/extraction/src/extract.ts @@ -122,6 +122,14 @@ const run = () => { ? className.slice(0, -6) : className; + subdevices.sort((a, _) => { + if (a === stateName) { + return -1; + } else { + return 0; + } + }); + // Find the actual constructors for (const device of subdevices) { // Setup inputs