Skip to content

Commit c0e66ed

Browse files
authored
Merge pull request #1074 from yaacov/catch-pipliens-with-different-disk-transfers
🐞 When calculating progress, catch all disk transfer piplines
2 parents 9371a51 + a5f1454 commit c0e66ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/forklift-console-plugin/src/modules/Plans/views/details/tabs/VirtualMachines/Migration/MigrationVirtualMachinesRow.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ const cellRenderers: Record<string, React.FC<PlanVMsCellProps>> = {
4747
return <Timestamp timestamp={value} />;
4848
},
4949
transfer: (props: PlanVMsCellProps) => {
50-
const diskTransfer = props.data.statusVM?.pipeline.find((p) => p?.name === 'DiskTransfer');
50+
const diskTransfer = props.data.statusVM?.pipeline.find((p) =>
51+
p?.name?.startsWith('DiskTransfer'),
52+
);
5153
const annotations: { unit: string } = diskTransfer?.annotations as undefined;
5254

5355
return annotations?.unit ? (

0 commit comments

Comments
 (0)