Skip to content

Commit

Permalink
Fix casing
Browse files Browse the repository at this point in the history
  • Loading branch information
john-conroy committed Aug 28, 2024
1 parent a01a5f0 commit 6d25d0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions context/app/static/js/pages/Collection/Collection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function Collection({ collection: collectionData }) {
useTrackID({ entity_type, hubmap_id });

// Handle both fields until creators is renamed to contributors.
const possible_contributors = contributors ?? creators;
const possibleContributors = contributors ?? creators;

return (
<div>
Expand All @@ -52,8 +52,8 @@ function Collection({ collection: collectionData }) {
)}
</Summary>
{'datasets' in collectionData && <CollectionDatasetsTable datasets={datasets} />}
{possible_contributors && Boolean(possible_contributors.length) && (
<ContributorsTable contributors={possible_contributors} contacts={contacts} title="Contributors" />
{possibleContributors && Boolean(possibleContributors.length) && (
<ContributorsTable contributors={possibleContributors} contacts={contacts} title="Contributors" />
)}
</>
)}
Expand Down

0 comments on commit 6d25d0b

Please sign in to comment.