Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 committed Nov 15, 2023
1 parent 360a61c commit 23f1232
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ export const CardsResultTemplate: React.FC<CardsResultTemplateProps> = ({ compon
return (
<div className={styles.ComponentsGrid}>
{_components.map((component) => (
<>
<React.Fragment key={component.id}>
{component._self.schema.ref.includes("organisation.schema.json") && (
<OrganizationCard
key={component.id}
title={{
label: component.name,
href: `/organizations/${component.id}`,
Expand Down Expand Up @@ -72,12 +73,12 @@ export const CardsResultTemplate: React.FC<CardsResultTemplateProps> = ({ compon
title={{ label: component.name, href: `/applications/${component.id}` }}
description={component.shortDescription}
tags={{
organization: component?.embedded?.owner.fullName,
organization: component?.embedded?.owner?.fullName,
githubLink: component?.demoUrl,
}}
/>
)}
</>
</React.Fragment>
))}
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const TableResultTemplate: React.FC<TableResultTemplateProps> = ({ compon
{t(
_.upperFirst(
component._self.schema.ref.includes("component.schema.json")
? component.embedded?.nl?.embedded?.commonground.layerType ?? t("Unknown")
? component.embedded?.nl?.embedded?.commonground?.layerType ?? t("Unknown")
: "N.V.T.",
),
)}
Expand Down

0 comments on commit 23f1232

Please sign in to comment.