Skip to content

Commit

Permalink
Add aliases props
Browse files Browse the repository at this point in the history
  • Loading branch information
Tammo-Feldmann committed Jun 26, 2023
1 parent 1da4399 commit b5a2a8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/pages/explore/products.js
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,11 @@ ExploreProducts.propTypes = {
id: PropTypes.string.isRequired,
longname: PropTypes.string.isRequired,
shortname: PropTypes.string.isRequired,
aliases: PropTypes.arrayOf(
PropTypes.shape({
shortname: PropTypes.string,
})
),
measurement_type: PropTypes.shape({
short_name: PropTypes.string,
}),
Expand Down
2 changes: 1 addition & 1 deletion src/templates/campaign/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ CampaignTemplate.propTypes = {
countDataProducts: PropTypes.number,
aliases: PropTypes.arrayOf(
PropTypes.shape({
shortname: PropTypes.string.isRequired,
shortname: PropTypes.string,
}).isRequired
),
description: PropTypes.string.isRequired,
Expand Down

0 comments on commit b5a2a8b

Please sign in to comment.