fix(ui): app summary [EE-6515] (#10966)

pull/10969/head
Prabhat Khera 2024-01-17 12:15:22 +13:00 committed by GitHub
parent 3f28d56bfc
commit ccc97e6f78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ export function getAppResourceSummaries(
newFormValues: ApplicationFormValues,
oldFormValues?: ApplicationFormValues
): Array<Summary> {
if (!oldFormValues) {
if (!oldFormValues?.Name) {
return getCreatedApplicationResourcesNew(newFormValues);
}
return getUpdatedApplicationResources(newFormValues, oldFormValues);