Fix Delete API failure issue (#8747)

This commit is contained in:
Sachin Chaurasiya 2022-11-15 12:20:54 +05:30 committed by GitHub
parent f57fe1d507
commit 7b9fecc369
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,10 @@ const DeleteWidgetModal = ({
return `glossaries`;
} else if (entityType === EntityType.POLICY) {
return 'policies';
} else if (entityType === EntityType.TEST_SUITE || EntityType.KPI) {
} else if (
entityType === EntityType.TEST_SUITE ||
entityType === EntityType.KPI
) {
return entityType;
} else {
return `${entityType}s`;