@cqa-lib/cqa-ui 1.1.531 → 1.1.532

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10250,11 +10250,14 @@ class ModularTableTemplateComponent {
10250
10250
  return null;
10251
10251
  return this.findFolder(this.folders, this.selectedFolderId);
10252
10252
  }
10253
- /** Count of test cases directly under the currently-selected folder (excluding descendants). */
10253
+ /** Count of test cases directly under the currently-selected folder (excluding descendants).
10254
+ * Reads `FolderNode.count` so the header badge matches the sidebar row count
10255
+ * (folder-sidebar.component.html renders the same `row.node.count`). Using
10256
+ * `filteredRows.length` here would only reflect the currently-rendered page. */
10254
10257
  get currentFolderDirectCount() {
10255
10258
  if (this.selectedFolderId == null)
10256
10259
  return 0;
10257
- return this.filteredRows.length;
10260
+ return this.currentFolderNode?.count ?? 0;
10258
10261
  }
10259
10262
  /**
10260
10263
  * Renders the empty-state slot when the host explicitly opts in, OR when the