Add structured node config with names/macs/ips and avoid flag
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -107,7 +107,11 @@ export function buildLocationTree(locations, parent) {
|
||||
name: loc.name || '',
|
||||
anonymous: anonymous,
|
||||
direction: loc.direction || 'horizontal',
|
||||
nodeRefs: (loc.nodes || []).map(n => n.toLowerCase()),
|
||||
nodeRefs: (loc.nodes || []).flatMap(n => [
|
||||
...(n.names || []).map(name => name.toLowerCase()),
|
||||
...(n.macs || []).map(mac => mac.toLowerCase()),
|
||||
...(n.ips || [])
|
||||
]),
|
||||
parent: parent,
|
||||
children: []
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user