mirror of
https://github.com/tale/headplane.git
synced 2026-08-17 16:47:51 +00:00
fix: change nodeList to existingTags
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user