summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Tony @ Navillus <60468564+tony-navillus@users.noreply.github.com> 2021-06-17 18:47:48 +0000
committerGravatar GitHub <noreply@github.com> 2021-06-17 13:47:48 -0500
commitfc4433e6408adf78743d186019c1f2dd15686b04 (patch)
tree8e063fae4b3f5f2b2d25df03baf0a8133b93b702
parentb13ac153654a53f44ca8dcc1ee8fd2f145dd3410 (diff)
downloadastro-fc4433e6408adf78743d186019c1f2dd15686b04.tar.gz
astro-fc4433e6408adf78743d186019c1f2dd15686b04.tar.zst
astro-fc4433e6408adf78743d186019c1f2dd15686b04.zip
Update collections.md (#485)
Very minor typo in the example code pulling results out of the `pokeapi` response
-rw-r--r--docs/collections.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/collections.md b/docs/collections.md
index 557700a0c..474bbe7a1 100644
--- a/docs/collections.md
+++ b/docs/collections.md
@@ -115,7 +115,7 @@ export let collection: any;
export async function createCollection() {
const allPokemonResponse = await fetch(`https://pokeapi.co/api/v2/pokemon?limit=150`);
const allPokemonResult = await allPokemonResponse.json();
- const allPokemon = allPokemonResult.result;
+ const allPokemon = allPokemonResult.results;
const allLetters = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'];
return {
// `routes` defines the total collection of routes as `params` data objects.