Skip to content

Commit

Permalink
Merge pull request #643 from EBISPOT/fix-anno-error2
Browse files Browse the repository at this point in the history
fix frontend exception when linked property has no type
  • Loading branch information
henrietteharmse authored Apr 16, 2024
2 parents cd1fe5f + 0a39cdb commit 1568297
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/model/Entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ export default abstract class Entity extends Thing {
// Object properties and data properties are not annotation properties, except in the case of informal vocabularies.
if (!this.isPredicateFromInformalVocabulary(predicate)) {
let linkedEntity = this.getLinkedEntities().get(predicate)
if (linkedEntity != undefined && linkedEntity.type.indexOf("objectProperty") !== -1) continue;
if (linkedEntity != undefined && linkedEntity.type.indexOf("dataProperty") !== -1) continue;
if (linkedEntity != undefined && linkedEntity.type && linkedEntity.type.indexOf("objectProperty") !== -1) continue;
if (linkedEntity != undefined && linkedEntity.type && linkedEntity.type.indexOf("dataProperty") !== -1) continue;
}

// If the value was already interpreted as definition/synonym/hierarchical, do
Expand Down

0 comments on commit 1568297

Please sign in to comment.