INFRA-3897 | Abhishek | Fix addition of objects in FormikCardList

This commit is contained in:
Abhishek Katiyar
2024-11-11 08:55:39 +05:30
parent 0bf70e01a9
commit 60cf01d9eb

View File

@@ -274,7 +274,7 @@ const DeleteResource = (props: DeleteResourceProps) => {
undefined,
);
if (index !== undefined) {
if (Object.entries(KubeObjectTypeMap).hasOwnProperty(fieldName) && index !== undefined) {
resourceName = KubeObjectTypeMap[fieldName]['name'];
let uniqueIdentifierName =
KubeObjectTypeMap[fieldName]['uniqueIdentifier'] !== undefined