Skip to content

Commit

Permalink
fix: double display of snapshot ID for 'Snapshots' in operation tree
Browse files Browse the repository at this point in the history
  • Loading branch information
garethgeorge committed Aug 18, 2024
1 parent 0eb560d commit 80dbe91
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions webui/src/components/OperationTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,16 @@ export const OperationTree = ({
) {
details.push(opDetails.displayState);
}
}
let snapshotId: string | null = null;
for (const op of b.operations) {
if (op.snapshotId) {
details.push(`ID: ${normalizeSnapshotId(op.snapshotId)}`);
snapshotId = op.snapshotId;
break;
}
}
if (b.snapshotInfo) {
details.push(`ID: ${normalizeSnapshotId(b.snapshotInfo.id)}`);
if (snapshotId) {
details.push(`ID: ${normalizeSnapshotId(snapshotId)}`);
}

let detailsElem: React.ReactNode | null = null;
Expand Down

0 comments on commit 80dbe91

Please sign in to comment.