From 55f56cd1a1b86850b8be26ee1877071bb8d26a2e Mon Sep 17 00:00:00 2001
From: domsteinbach <36757218+domsteinbach@users.noreply.github.com>
Date: Thu, 10 Aug 2023 16:42:31 +0200
Subject: [PATCH] fix(runtime errors): fix errors thrown (#1178)
Co-authored-by: Mike Delez <60604010+mdelez@users.noreply.github.com>
---
.../main/action/login-form/login-form.component.html | 2 +-
.../resource-class-property-info.component.ts | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/apps/dsp-app/src/app/main/action/login-form/login-form.component.html b/apps/dsp-app/src/app/main/action/login-form/login-form.component.html
index c6a5ef81c0..c589aa1004 100644
--- a/apps/dsp-app/src/app/main/action/login-form/login-form.component.html
+++ b/apps/dsp-app/src/app/main/action/login-form/login-form.component.html
@@ -1,4 +1,4 @@
-
+
diff --git a/apps/dsp-app/src/app/project/ontology/resource-class-info/resource-class-property-info/resource-class-property-info.component.ts b/apps/dsp-app/src/app/project/ontology/resource-class-info/resource-class-property-info/resource-class-property-info.component.ts
index 4cf54e7a75..4194676a3a 100644
--- a/apps/dsp-app/src/app/project/ontology/resource-class-info/resource-class-property-info/resource-class-property-info.component.ts
+++ b/apps/dsp-app/src/app/project/ontology/resource-class-info/resource-class-property-info/resource-class-property-info.component.ts
@@ -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;