Fix AP location and table root consistency

- Only include APs in getSwitchesInLocation for AP sub-locations
- Update table.js to include APs in switch graph like render.js

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ian Gulliver
2026-02-02 22:17:50 -08:00
parent 92ab5d8a6e
commit ced0a6e599
2 changed files with 6 additions and 5 deletions

View File

@@ -130,7 +130,8 @@ export function getSwitchesInLocation(loc, assignedNodes) {
const switches = [];
const nodes = assignedNodes.get(loc) || [];
nodes.forEach(n => {
if (isSwitch(n) || isAP(n)) switches.push(n);
if (isSwitch(n)) switches.push(n);
if (isAP(n) && loc.isAPLocation) switches.push(n);
});
loc.children.forEach(child => {
if (child.anonymous || child.isAPLocation) {