From 51b64167623533f960b4e430dfc650562c01e4c7 Mon Sep 17 00:00:00 2001 From: Josh Lagrimas Date: Mon, 24 Jul 2023 10:35:42 +0100 Subject: [PATCH] issue-426: make sure variables are in string format before doing substring --- frontend/src/pages/Help.tsx | 6 +++--- .../entityPageSections/EntityAnnotationsSection.tsx | 2 +- .../entityPageSections/EntityDescriptionSection.tsx | 2 +- .../entityPageSections/EntityRelatedFromSection.tsx | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/src/pages/Help.tsx b/frontend/src/pages/Help.tsx index f24c40821..27a788a57 100644 --- a/frontend/src/pages/Help.tsx +++ b/frontend/src/pages/Help.tsx @@ -196,7 +196,7 @@ Content-Length: 153 > Hypertext Application Language (HAL) - format. Links can be found beneath the  +  format. Links can be found beneath the  _links key. Users of the API should not create URIs themselves, instead they should use the above-described links to navigate from resource to resource. @@ -412,8 +412,8 @@ Content-Type: application/json
Response structure

The response is paginated where the individual ontology resources are - in the _embedded.ontologies{" "} - field. + in the _embedded.ontologies +  field.

Ontology
Retrieve an ontology
diff --git a/frontend/src/pages/ontologies/entities/entityPageSections/EntityAnnotationsSection.tsx b/frontend/src/pages/ontologies/entities/entityPageSections/EntityAnnotationsSection.tsx index d7a315154..b92acee29 100644 --- a/frontend/src/pages/ontologies/entities/entityPageSections/EntityAnnotationsSection.tsx +++ b/frontend/src/pages/ontologies/entities/entityPageSections/EntityAnnotationsSection.tsx @@ -54,7 +54,7 @@ export default function EntityAnnotationsSection({ return (
  • {renderAnnotation(annotation)} diff --git a/frontend/src/pages/ontologies/entities/entityPageSections/EntityDescriptionSection.tsx b/frontend/src/pages/ontologies/entities/entityPageSections/EntityDescriptionSection.tsx index 0422c4919..8f7448745 100644 --- a/frontend/src/pages/ontologies/entities/entityPageSections/EntityDescriptionSection.tsx +++ b/frontend/src/pages/ontologies/entities/entityPageSections/EntityDescriptionSection.tsx @@ -18,7 +18,7 @@ export default function EntityDescriptionSection({ {desc.map((definition: Reified, i: number) => { return (

    diff --git a/frontend/src/pages/ontologies/entities/entityPageSections/EntityRelatedFromSection.tsx b/frontend/src/pages/ontologies/entities/entityPageSections/EntityRelatedFromSection.tsx index 88217e4cc..ac205d2b4 100644 --- a/frontend/src/pages/ontologies/entities/entityPageSections/EntityRelatedFromSection.tsx +++ b/frontend/src/pages/ontologies/entities/entityPageSections/EntityRelatedFromSection.tsx @@ -33,7 +33,7 @@ export default function EntityRelatedFromSection({ {predicates.map((p) => { let label = linkedEntities.getLabelForIri(p); return ( -

    +
    {label || p}
    @@ -44,7 +44,7 @@ export default function EntityRelatedFromSection({ let relatedIri = relatedFrom.value.value; // let label = linkedEntities.getLabelForIri(relatedIri); return ( -
  • +