From fc4433e6408adf78743d186019c1f2dd15686b04 Mon Sep 17 00:00:00 2001 From: "Tony @ Navillus" <60468564+tony-navillus@users.noreply.github.com> Date: Thu, 17 Jun 2021 18:47:48 +0000 Subject: [PATCH] Update collections.md (#485) Very minor typo in the example code pulling results out of the `pokeapi` response --- docs/collections.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.