Stop applying UME inventory totals to empty manual root maps.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-07 17:57:33 +08:00
parent 104de449cf
commit 1373eff4ab
2 changed files with 8 additions and 23 deletions

View file

@ -315,8 +315,8 @@ function primaryTreeView(
/**
* Directory NE badge from API: fabric inventory under the folder.
* 根 / 根图 / UME World / World share the same whole-network total; nested regions
* sum owned NEs in their subtree. Region folders themselves never count as NEs.
* UME World / World / 世界地图 share the UME total; manual 根/根图 use their own
* subtree (empty → 0). Region folders themselves never count as NEs.
*/
function folderNeCount(folder: TopologyTreeFolderItem | null | undefined): number {
if (!folder) return 0;