From 18a161f27561bc64fc25a3d70526e8634c43b899 Mon Sep 17 00:00:00 2001 From: Vishali Sakar Date: Sat, 21 May 2022 18:44:09 +0530 Subject: [PATCH] undefine fixed --- .../routes/home/routes/approvals/approvals.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/project/ws/app/src/lib/routes/home/routes/approvals/approvals.component.ts b/project/ws/app/src/lib/routes/home/routes/approvals/approvals.component.ts index 5cb6a80c3..466a03378 100644 --- a/project/ws/app/src/lib/routes/home/routes/approvals/approvals.component.ts +++ b/project/ws/app/src/lib/routes/home/routes/approvals/approvals.component.ts @@ -134,7 +134,12 @@ export class ApprovalsComponent implements OnInit, OnDestroy { const fields = JSON.parse(wf.updateFieldValues) if (fields.length > 0) { fields.forEach((field: any) => { - keys += `${_.first(Object.keys(field.fromValue))}, ` + if (Object.keys(field.fromValue).length > 0) { + + keys += `${_.first(Object.keys(field.fromValue))}, ` + } else { + keys += `${_.first(Object.keys(field.toValue))}, ` + } }) } }