fix: 'items' shows the total number of flows under the parent node rather than immediate decendents
Build Snapshot Release / build (push) Has been cancelled
Release Please / release-please (push) Has been cancelled
Test / test-nix (push) Has been cancelled
Test / test-win (push) Has been cancelled
Update Restic / update-restic-version (push) Has been cancelled

This commit is contained in:
Gareth
2025-08-07 23:29:11 -07:00
parent fe78df34c6
commit 16e6edef9d
+4 -3
View File
@@ -297,7 +297,8 @@ const DisplayOperationTree = ({
level.groupingFn,
(groupKey: string, ops: FlowDisplayInfo[]) => {
const exemplar = ops[0];
const children = new Set(ops.map(childGroupFn)).size;
const children = ops.length;
const expanded = expandedKeys.has(groupKey);
return {
key: groupKey,
title: (
@@ -305,7 +306,7 @@ const DisplayOperationTree = ({
<Typography.Text>
{level.titleFn(exemplar)}
</Typography.Text>
{!expandedKeys.has(groupKey) && (
{!expanded && (
<Typography.Text
type="secondary"
style={{ fontSize: "12px", marginLeft: "8px" }}
@@ -315,7 +316,7 @@ const DisplayOperationTree = ({
)}
</>
),
children: expandedKeys.has(groupKey)
children: expanded
? fn(ops, expandedKeys, groupKey)
: [{ key: groupKey + "_loading", title: "Loading..." }],
};