From 0372a2f56a510d2f012ebef50608fd0d77329b1c Mon Sep 17 00:00:00 2001 From: Ugo Palatucci Date: Wed, 24 Jan 2024 11:55:20 +0100 Subject: [PATCH] Crash on delete moal loading --- .../actions/components/DeleteVMModal/utils/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/virtualmachines/actions/components/DeleteVMModal/utils/helpers.ts b/src/views/virtualmachines/actions/components/DeleteVMModal/utils/helpers.ts index da0830749..cc826f25a 100644 --- a/src/views/virtualmachines/actions/components/DeleteVMModal/utils/helpers.ts +++ b/src/views/virtualmachines/actions/components/DeleteVMModal/utils/helpers.ts @@ -36,5 +36,5 @@ export const findPVCOwner = ( resources: K8sResourceCommon[], ) => resources.find((resource) => - pvc?.metadata?.ownerReferences.find((owner) => owner.uid === resource.metadata.uid), + pvc?.metadata?.ownerReferences?.find((owner) => owner.uid === resource.metadata.uid), );