mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-05-04 03:50:30 +00:00
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
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:
@@ -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..." }],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user