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), );