fix: change nodeList to existingTags

This commit is contained in:
Meow
2025-11-09 01:19:59 -05:00
parent c3e07e4e10
commit 5090733013
6 changed files with 30 additions and 28 deletions
+11
View File
@@ -52,3 +52,14 @@ export function mapNodes(
};
});
}
export function sortNodeTags(nodes: Machine[]): string[] {
return Array.from(
new Set(
nodes.flatMap(({ validTags, forcedTags }) => [
...validTags,
...forcedTags,
]),
),
).sort();
}