Skip to content

Commit

Permalink
ensure lines are loaded before loading submissions
Browse files Browse the repository at this point in the history
  • Loading branch information
duncte123 committed Jun 11, 2024
1 parent 4ba3e1b commit e739a9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/marathon/schedule-management/edit/edit.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ export class EditComponent implements OnInit, OnDestroy {
}

async ngOnInit() {
this.scheduleService.getLines(this.marathonId, this.scheduleInfo.id).subscribe((resp) => {
this.lines = resp.data;
});
const { data } = await firstValueFrom(this.scheduleService.getLines(this.marathonId, this.scheduleInfo.id));

this.lines = data;
await this.loadAllSubmissions();
await this.loadAllAvailabilities();
await this.initTimeline();
Expand Down

0 comments on commit e739a9d

Please sign in to comment.