Skip to content

Commit

Permalink
undefine fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishali Sakar committed May 21, 2022
1 parent 452dea7 commit 18a161f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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))}, `
}
})
}
}
Expand Down

0 comments on commit 18a161f

Please sign in to comment.