Fix wrong-switch detection for nodes in locations with APs
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -134,7 +134,7 @@ export function getSwitchesInLocation(loc, assignedNodes) {
|
|||||||
if (isAP(n) && loc.isAPLocation) switches.push(n);
|
if (isAP(n) && loc.isAPLocation) switches.push(n);
|
||||||
});
|
});
|
||||||
loc.children.forEach(child => {
|
loc.children.forEach(child => {
|
||||||
if (child.anonymous || child.isAPLocation) {
|
if (child.anonymous && !child.isAPLocation) {
|
||||||
switches.push(...getSwitchesInLocation(child, assignedNodes));
|
switches.push(...getSwitchesInLocation(child, assignedNodes));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user