Count manual canvas NE badges from view membership, not only fabric region ownership.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-07 18:01:53 +08:00
parent 1373eff4ab
commit 3d86bc7594
2 changed files with 37 additions and 13 deletions

View file

@ -314,9 +314,8 @@ function primaryTreeView(
}
/**
* Directory NE badge from API: fabric inventory under the folder.
* UME World / World / 世界地图 share the UME total; manual 根/根图 use their own
* subtree (empty → 0). Region folders themselves never count as NEs.
* Directory NE badge from API.
* Manual canvases count view membership (placed NEs); UME World surfaces use inventory.
*/
function folderNeCount(folder: TopologyTreeFolderItem | null | undefined): number {
if (!folder) return 0;