From 9bc7e5513287e29f748131546e35f3f94a87d48d Mon Sep 17 00:00:00 2001 From: James McLaughlin Date: Thu, 7 Nov 2024 14:18:18 +0000 Subject: [PATCH] Fix error on individual page when property does not have a definition --- .../entityPageSections/IndividualPropertyAssertionsSection.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/pages/ontologies/entities/entityPageSections/IndividualPropertyAssertionsSection.tsx b/frontend/src/pages/ontologies/entities/entityPageSections/IndividualPropertyAssertionsSection.tsx index c20ccf6b7..f31647959 100644 --- a/frontend/src/pages/ontologies/entities/entityPageSections/IndividualPropertyAssertionsSection.tsx +++ b/frontend/src/pages/ontologies/entities/entityPageSections/IndividualPropertyAssertionsSection.tsx @@ -24,12 +24,14 @@ export default function IndividualPropertyAssertionsSection({ let objectProperties = propertyIris.filter( (k) => linkedEntities.get(k) && + linkedEntities.get(k)!.type && linkedEntities.get(k)!.type.indexOf("objectProperty") !== -1 ); let dataProperties = propertyIris.filter( (k) => linkedEntities.get(k) && + linkedEntities.get(k)!.type && linkedEntities.get(k)!.type.indexOf("dataProperty") !== -1 );