From fe36ce744833c52d3ea0f5c72834c7e2533beaec Mon Sep 17 00:00:00 2001 From: yzamir Date: Thu, 28 Mar 2024 18:10:00 +0200 Subject: [PATCH] Dont assume mifration is owned Signed-off-by: yzamir --- .../VirtualMachines/Migration/MigrationVirtualMachinesList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/forklift-console-plugin/src/modules/Plans/views/details/tabs/VirtualMachines/Migration/MigrationVirtualMachinesList.tsx b/packages/forklift-console-plugin/src/modules/Plans/views/details/tabs/VirtualMachines/Migration/MigrationVirtualMachinesList.tsx index f768375e1..e4a6b3510 100644 --- a/packages/forklift-console-plugin/src/modules/Plans/views/details/tabs/VirtualMachines/Migration/MigrationVirtualMachinesList.tsx +++ b/packages/forklift-console-plugin/src/modules/Plans/views/details/tabs/VirtualMachines/Migration/MigrationVirtualMachinesList.tsx @@ -120,7 +120,7 @@ export const MigrationVirtualMachinesList: FC<{ obj: PlanData }> = ({ obj }) => const planMigrations = ( migrations && migrationLoaded && !migrationLoadError ? migrations : [] - ).filter((m) => m.metadata.ownerReferences[0].uid === plan.metadata.uid); + ).filter((m) => m?.metadata?.ownerReferences?.[0]?.uid === plan.metadata.uid); planMigrations?.sort( (a, b) =>