Fix event to approve

This commit is contained in:
Peter Maquiran
2021-09-03 15:50:13 +01:00
parent a731230656
commit 4a6225b914
10 changed files with 12 additions and 17 deletions
@@ -69,7 +69,7 @@ export class EditEventToApproveComponent implements OnInit {
Body: "",
OccurrenceType: '',
Category: '',
LastOccurrence: '',
LastOccurrence: new Date(),
ParticipantsList: [],
Agenda: '',
EndDate: '',
@@ -134,9 +134,10 @@ export class EditEventToApproveComponent implements OnInit {
const result = await this.processes.GetTask(this.serialNumber).toPromise();
console.log(result);
this.eventProcess = result
this.eventProcess.workflowInstanceDataFields.Category = result.workflowInstanceDataFields.EventType
this.eventProcess.workflowInstanceDataFields.LastOccurrence = new Date(this.eventProcess.workflowInstanceDataFields.LastOccurrence)
this.startDate = new Date(this.eventProcess.workflowInstanceDataFields.StartDate);
this.endDate = new Date(this.eventProcess.workflowInstanceDataFields.EndDate);