Skip to content

Commit

Permalink
batch-of-fixes-2-sep
Browse files Browse the repository at this point in the history
  • Loading branch information
leomendoza123 committed Sep 2, 2024
1 parent c0b6610 commit beb190b
Showing 1 changed file with 7 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import {
DisplayName,
Institutional,
} from '../../../types/institutional.endpoint'
import { path } from '@angular-devkit/core'

@Component({
selector: 'app-institutional',
Expand Down Expand Up @@ -96,14 +95,6 @@ export class InstitutionalComponent implements OnInit {
? []
: institutionsFiltered
}),
tap(() => {
if (
!this.institutionFormControl.valid &&
!this.institutionFormControl.pristine
) {
this.userSelectedInstitutions = []
}
})
)
})
}
Expand Down Expand Up @@ -160,12 +151,13 @@ export class InstitutionalComponent implements OnInit {
this.institution = institutionSelected
this.entityID = this.institution.entityID

this.displayDefaultImage = false
this.imageLoadingTimeOut = false
this.imageLoadingFinish = false

this.userSelectedInstitutions = []
this.userSelectedInstitutions.push(institutionSelected)
if (!this.userSelectedInstitutions || !this.userSelectedInstitutions.length) {
this.displayDefaultImage = false
this.imageLoadingTimeOut = false
this.imageLoadingFinish = false
this.userSelectedInstitutions = []
this.userSelectedInstitutions.push(institutionSelected)
}
}

getNameInstitution(institution: Institutional): DisplayName {
Expand Down

0 comments on commit beb190b

Please sign in to comment.