Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cell id for marine landscapes #346

Merged
merged 1 commit into from Oct 3, 2018
Merged

Fix cell id for marine landscapes #346

merged 1 commit into from Oct 3, 2018

Conversation

j8seangel
Copy link
Contributor

Fixes the cell id when marine as it isn't an integer.

image

Open the question: Should we also include a placeholder when no species listed in that area?

PR 馃嵕 馃弳

@@ -4,9 +4,13 @@ const config = { url: 'https://api.mol.org/1.x/species/info', query: '?scientifi

async function getSpecies(species) {
const speciesArray = Array.isArray(species) ? species : [ species ];
const promises = speciesArray.map(specie => fetch(`${config.url}${config.query}${specie}`).then(d => d.json()));
const promises = speciesArray.map(
specie => fetch(`${config.url}${config.query}${specie}`).then(d => d.json())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

specie is a word that doesn't exist. The var should be species. =)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃摉

@weberjavi weberjavi merged commit 58080ac into develop Oct 3, 2018
@weberjavi weberjavi deleted the fix/marine-grid-id branch October 3, 2018 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants