INFRA-3897 | Abhishek | Fix addition of objects in FormikCardList
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user