From cd5f018e0c7b0c3f940ac62dccf4dc40d45dcb05 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Wed, 4 Feb 2026 11:55:07 -0800 Subject: [PATCH] Fix wrong-switch detection for nodes in locations with APs Co-Authored-By: Claude Opus 4.5 --- static/js/topology.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/topology.js b/static/js/topology.js index 3b3ca3d..43f8f2c 100644 --- a/static/js/topology.js +++ b/static/js/topology.js @@ -134,7 +134,7 @@ export function getSwitchesInLocation(loc, assignedNodes) { if (isAP(n) && loc.isAPLocation) switches.push(n); }); loc.children.forEach(child => { - if (child.anonymous || child.isAPLocation) { + if (child.anonymous && !child.isAPLocation) { switches.push(...getSwitchesInLocation(child, assignedNodes)); } });