Skip to content

Commit

Permalink
fix(networks): build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ahonestla committed Feb 3, 2025
1 parent 9bb12d4 commit af3c999
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions client/src/pages/networks/components/clusters/items.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function ClusterItem({ currentModel, community }: ClusterItemArgs) {
size="sm"
color="pink-macaron"
>
{`${community.publicationsCount} ${intl.formatMessage({
{`${community.documentsCount} ${intl.formatMessage({
id: "networks.section.clusters.badge-publications",
})}`}
</Badge>
Expand Down Expand Up @@ -120,7 +120,7 @@ function ClusterItem({ currentModel, community }: ClusterItemArgs) {
<Modal isOpen={showPublicationsModal} hide={() => setShowPublicationsModal(false)}>
<ModalTitle>{intl.formatMessage({ id: "networks.section.clusters.badge-publications" })}</ModalTitle>
<ModalContent>
{community?.publications?.map((publication) => (
{community?.documents?.map((publication) => (
<li className="fr-mt-1w">
<Link href={window.location.origin + "/publications/" + encode(publication.id as string)}>
{publication.title}
Expand Down
6 changes: 3 additions & 3 deletions client/src/pages/networks/hooks/useExportData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const exportNetwork = (network: NetworkData) => ({
...(network.clusters.length && {
clusterLabel: network.clusters.find((cluster) => cluster.cluster === item.cluster).label,
}),
publicationsCount: item?.publicationsCount,
documentsCount: item?.documentsCount,
citationsCount: item?.citationsCount,
citationsRecent: item?.citationsRecent,
citationsScore: item?.citationsScore,
Expand All @@ -76,11 +76,11 @@ const exportNetwork = (network: NetworkData) => ({
id: cluster.cluster,
label: cluster.label,
nodesCount: cluster.nodes.length,
publicationsCount: cluster?.publicationsCount,
documentsCount: cluster?.documentsCount,
citationsCount: cluster?.citationsCount,
citationsRecent: cluster?.citationsRecent,
citationsScore: cluster?.citationsScore,
publications: cluster?.publications,
documents: cluster?.documents,
})),
})

Expand Down

0 comments on commit af3c999

Please sign in to comment.