Skip to content

Commit

Permalink
fix(runtime errors): fix errors thrown (#1178)
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Delez <60604010+mdelez@users.noreply.github.com>
  • Loading branch information
domsteinbach and mdelez committed Aug 10, 2023
1 parent 2b786a6 commit 55f56cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
@@ -1,4 +1,4 @@
<div class="login-container" *ngIf="!session">
<div class="login-container" *ngIf="!session && form">
<!-- <h2 class="login-form-title mat-title">{{formLabel.title}}</h2> -->

<!-- This is the login form -->
Expand Down
Expand Up @@ -153,11 +153,11 @@ export class ResourceClassPropertyInfoComponent
this._applicationStateService.get('currentProjectOntologies').subscribe(
(ontologies: ReadOntology[]) => {
const onto = ontologies.find((i) => i.id === baseOnto);
if (
!onto &&
this.propDef.objectType === Constants.Region
) {
this.propAttribute = 'Region';
if ( !onto ) {
if (this.propDef.objectType === Constants.Region) {
this.propAttribute = 'Region';
} // else no ontology found

} else {
this.propAttribute =
onto.classes[this.propDef.objectType].label;
Expand Down

0 comments on commit 55f56cd

Please sign in to comment.