Skip to content

Commit

Permalink
fix phase selection not being set correctly when creating new incident (
Browse files Browse the repository at this point in the history
#37)

Signed-off-by: Sebastian Kaupe <[email protected]>
  • Loading branch information
snkaupe authored Sep 3, 2024
1 parent 9376a2c commit 84d5ef8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/management-view/management-view.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,13 @@ export class ManagementViewComponent implements OnInit{
if (this.inputIncidentEndDate.nativeElement.value) {
this.editingIncident.endedAt = formatQueryDate(dayjs(this.inputIncidentEndDate.nativeElement.value).utc());
}
if (!this.editingIncident.phase) {
this.editingIncident.phase = {
generation: 1,
order: 0
};
}
this.editingIncident.phase.order = parseInt(this.inputIncidentPhase.nativeElement.value) ?? 0;
this.waitState = WS_PROCESSING;
this.waitSpinnerDialog.nativeElement.showModal();
this.handleResponse(this.data.createIncident(this.editingIncident), this.incidentDialog);
Expand Down

0 comments on commit 84d5ef8

Please sign in to comment.