Skip to content

Commit

Permalink
correct typo... format to formats
Browse files Browse the repository at this point in the history
  • Loading branch information
naomatheus committed Sep 5, 2023
1 parent afe6861 commit ca8197e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions src/templates/campaign/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ const CampaignTemplate = ({ data: { campaign }, path }) => {
// create multispatialbounds object excluding null spatial bounds
const bounds = campaign.deployments
? campaign.deployments
.filter(d => d.spatial_bounds !== null)
.map(deployment => {
return {
type: "Feature",
geometry: parse(deployment.spatial_bounds),
}
})
.filter(d => d.spatial_bounds !== null)

Check failure on line 30 in src/templates/campaign/index.js

View workflow job for this annotation

GitHub Actions / lint

Insert `··`
.map(deployment => {

Check failure on line 31 in src/templates/campaign/index.js

View workflow job for this annotation

GitHub Actions / lint

Insert `··`
return {

Check failure on line 32 in src/templates/campaign/index.js

View workflow job for this annotation

GitHub Actions / lint

Insert `··`
type: "Feature",

Check failure on line 33 in src/templates/campaign/index.js

View workflow job for this annotation

GitHub Actions / lint

Replace `··········` with `············`
geometry: parse(deployment.spatial_bounds),

Check failure on line 34 in src/templates/campaign/index.js

View workflow job for this annotation

GitHub Actions / lint

Insert `··`
}

Check failure on line 35 in src/templates/campaign/index.js

View workflow job for this annotation

GitHub Actions / lint

Insert `··`
})

Check failure on line 36 in src/templates/campaign/index.js

View workflow job for this annotation

GitHub Actions / lint

Insert `··`
: null

// Create a GeoJSON object from the filteredBounds
Expand Down Expand Up @@ -366,7 +366,7 @@ CampaignTemplate.propTypes = {
PropTypes.shape({
cmrTitle: PropTypes.string.isRequired,
doi: PropTypes.string.isRequired,
format: PropTypes.string,
formats: PropTypes.string,
id: PropTypes.string.isRequired,
longname: PropTypes.string,
})
Expand Down
2 changes: 1 addition & 1 deletion src/templates/instrument/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ InstrumentTemplate.propTypes = {
dois: PropTypes.arrayOf(
PropTypes.shape({
cmrTitle: PropTypes.string.isRequired,
format: PropTypes.string,
formats: PropTypes.string,
doi: PropTypes.string.isRequired,
id: PropTypes.string.isRequired,
longname: PropTypes.string,
Expand Down
2 changes: 1 addition & 1 deletion src/templates/platform/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ PlatformTemplate.propTypes = {
dois: PropTypes.arrayOf(
PropTypes.shape({
cmrTitle: PropTypes.string.isRequired,
format: PropTypes.string,
formats: PropTypes.string,
doi: PropTypes.string.isRequired,
id: PropTypes.string.isRequired,
longname: PropTypes.string,
Expand Down

0 comments on commit ca8197e

Please sign in to comment.