Skip to content

Commit

Permalink
institution-hierarchy-fix (#1562)
Browse files Browse the repository at this point in the history
  • Loading branch information
litvinets authored Aug 15, 2022
1 parent 267ba16 commit 14dad73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
[formControl]="instituitionIdFormControl"
disableOptionCentering
panelClass="dropdown-panel"
class="step-input"
[compareWith]="compareInstitutions">
placeholder="Оберіть підпорядкування"
class="step-input">
<mat-option *ngFor="let institution of institutions$ | async" [value]="institution.id" class="dropdown-option">
{{ institution.title }}
</mat-option>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ export class InstitutionHierarchyComponent implements OnInit, OnDestroy {
}
}

compareInstitutions(institution1: Institution, institution2: Institution): boolean {
return institution1.id === institution2.id;
}

private setInitialInstitution(): void {
const institutionId = this.editMode ? this.instituitionIdFormControl.value : this.provider.institution?.id;
if (institutionId) {
Expand Down

0 comments on commit 14dad73

Please sign in to comment.