From 05f5c13258ab78239d72d72fff81fed2ebc461f9 Mon Sep 17 00:00:00 2001 From: Remko Date: Tue, 19 Dec 2023 15:34:09 +0100 Subject: [PATCH] bugfixes --- .../ComponentsDetailTemplate.tsx | 2 +- .../OrganizationDetailTemplate.tsx | 112 +++++++++--------- .../table/TableResultTemplate.tsx | 4 +- 3 files changed, 58 insertions(+), 60 deletions(-) diff --git a/pwa/src/templates/componentDetail/ComponentsDetailTemplate.tsx b/pwa/src/templates/componentDetail/ComponentsDetailTemplate.tsx index bf943c9cc..e2fb839fb 100644 --- a/pwa/src/templates/componentDetail/ComponentsDetailTemplate.tsx +++ b/pwa/src/templates/componentDetail/ComponentsDetailTemplate.tsx @@ -389,7 +389,7 @@ export const ComponentsDetailTemplate: React.FC =
- {_getComponent.data.embedded?.dependsOn?.embedded.open && ( + {_getComponent.data.embedded?.dependsOn?.embedded?.open && ( {/* */}
- {_getOrganization.data?.embedded?.owns.map( - (component: any) => - - )} + {_getOrganization.data?.embedded?.owns?.map((component: any) => ( + + ))}
@@ -187,25 +185,24 @@ export const OrganizationDetailTemplate: React.FC {/* */}
- {_getOrganization.data?.embedded?.supports.map( - (component: any) => - - )} + {_getOrganization.data?.embedded?.supports?.map((component: any) => ( + + ))}
@@ -213,25 +210,24 @@ export const OrganizationDetailTemplate: React.FC {/* */}
- {_getOrganization.data?.embedded?.uses.map( - (component: any) => - - )} + {_getOrganization.data?.embedded?.uses?.map((component: any) => ( + + ))}
diff --git a/pwa/src/templates/templateParts/resultsTemplates/table/TableResultTemplate.tsx b/pwa/src/templates/templateParts/resultsTemplates/table/TableResultTemplate.tsx index d724e22ee..b900feb91 100644 --- a/pwa/src/templates/templateParts/resultsTemplates/table/TableResultTemplate.tsx +++ b/pwa/src/templates/templateParts/resultsTemplates/table/TableResultTemplate.tsx @@ -58,7 +58,9 @@ export const TableResultTemplate: React.FC = ({ compon onClick={() => navigate(`/${getResultsUrl(component._self?.schema.ref)}/${component.id}`)} > - {component.name} + + {component.name} + {t(_.upperFirst(getTypeFromSchemaRef(component._self?.schema.ref)))}