Fixed subdevices not sorting, causing the wrong parent to be selected

This commit is contained in:
Adam Gastineau
2023-06-28 17:00:43 -07:00
parent b9d4cb7797
commit 9ec5ea327c

View File

@@ -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