diff --git a/ng2-components/ng2-activiti-processlist/src/services/process.service.ts b/ng2-components/ng2-activiti-processlist/src/services/process.service.ts index 4c9fa4b0bb..6fefecf719 100644 --- a/ng2-components/ng2-activiti-processlist/src/services/process.service.ts +++ b/ng2-components/ng2-activiti-processlist/src/services/process.service.ts @@ -233,12 +233,7 @@ export class ProcessService extends TaskListService { .map((response: any) => { let comments: Comment[] = []; response.data.forEach((comment) => { - let user = new LightUserRepresentation({ - id: comment.createdBy.id, - email: comment.createdBy.email, - firstName: comment.createdBy.firstName, - lastName: comment.createdBy.lastName - }); + let user = new LightUserRepresentation(comment.createdBy); comments.push(new Comment(comment.id, comment.message, comment.created, user)); }); return comments;