diff --git a/packages/forklift-console-plugin/src/modules/Plans/views/details/tabs/VirtualMachines/Migration/MigrationVirtualMachinesRow.tsx b/packages/forklift-console-plugin/src/modules/Plans/views/details/tabs/VirtualMachines/Migration/MigrationVirtualMachinesRow.tsx index cab248028..e0e60fa75 100644 --- a/packages/forklift-console-plugin/src/modules/Plans/views/details/tabs/VirtualMachines/Migration/MigrationVirtualMachinesRow.tsx +++ b/packages/forklift-console-plugin/src/modules/Plans/views/details/tabs/VirtualMachines/Migration/MigrationVirtualMachinesRow.tsx @@ -77,7 +77,7 @@ const cellRenderers: Record> = { ); }, status: (props: PlanVMsCellProps) => { - const pipeline = props.data.statusVM?.pipeline; + const pipeline = props.data.statusVM?.pipeline || []; let lastRunningItem: V1beta1PlanStatusMigrationVmsPipeline; if (pipeline[0]?.phase === 'Pending') { diff --git a/packages/forklift-console-plugin/src/modules/Plans/views/details/tabs/VirtualMachines/Migration/MigrationVirtualMachinesRowExtended.tsx b/packages/forklift-console-plugin/src/modules/Plans/views/details/tabs/VirtualMachines/Migration/MigrationVirtualMachinesRowExtended.tsx index 0eef0a5d0..86cf9466e 100644 --- a/packages/forklift-console-plugin/src/modules/Plans/views/details/tabs/VirtualMachines/Migration/MigrationVirtualMachinesRowExtended.tsx +++ b/packages/forklift-console-plugin/src/modules/Plans/views/details/tabs/VirtualMachines/Migration/MigrationVirtualMachinesRowExtended.tsx @@ -35,8 +35,8 @@ export const MigrationVirtualMachinesRowExtended: React.FC> = ( const { t } = useForkliftTranslation(); const { showModal } = useModal(); - const pipeline = props.resourceData.statusVM?.pipeline; - const conditions = props.resourceData.statusVM?.conditions; + const pipeline = props.resourceData.statusVM?.pipeline || []; + const conditions = props.resourceData.statusVM?.conditions || []; const pods = props.resourceData.pods; const jobs = props.resourceData.jobs; const pvcs = props.resourceData.pvcs; @@ -238,7 +238,7 @@ export const MigrationVirtualMachinesRowExtended: React.FC> = ( )} - {(conditions || []).length > 0 && ( + {conditions.length > 0 && ( <> > = ( - {(conditions || []).map((condition) => ( + {conditions.map((condition) => ( {condition.type} {getStatusLabel(condition.status)}