mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-08-28 11:56:28 +00:00
fix: double display of snapshot ID for 'Snapshots' in operation tree
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user