Skip to content

Commit

Permalink
change order
Browse files Browse the repository at this point in the history
  • Loading branch information
shaed-parkar committed Nov 27, 2024
1 parent bf2b836 commit 0878469
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ export class HearingScheduleComponent extends BookingBaseComponent implements On
});
this.failedSubmission = false;
this.checkForExistingRequest();
this.retrieveCourts();
this.initForm();
this.retrieveCourts();

super.ngOnInit();
}

Expand Down Expand Up @@ -439,7 +440,7 @@ export class HearingScheduleComponent extends BookingBaseComponent implements On

setVenueForExistingHearing() {
if (this.isExistinHearing && this.availableCourts && this.availableCourts.length > 0) {
const selectedCourts = this.availableCourts.filter(x => x.name === this.hearing.court_name);
const selectedCourts = this.availableCourts.filter(x => x.code === this.hearing.court_code);
if (selectedCourts && selectedCourts.length > 0) {
this.selectedCourtName = selectedCourts[0].name;
this.selectedCourtCode = selectedCourts[0].code;
Expand Down

0 comments on commit 0878469

Please sign in to comment.