mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 05:30:46 +08:00
Stop applying UME inventory totals to empty manual root maps.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
104de449cf
commit
1373eff4ab
2 changed files with 8 additions and 23 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue