diff options
author | 2021-06-25 23:07:11 +0200 | |
---|---|---|
committer | 2021-06-25 14:07:11 -0700 | |
commit | 245632bc31f849f5cd803824ddaa3bf566a17006 (patch) | |
tree | 854706ab82fe74e0e6eeb9e7f926cc85df6f9508 /docs-www/src/components/DocSidebar.tsx | |
parent | f3e005de6f35e3e67ec5e513e0de5e1b6c04d664 (diff) | |
download | astro-245632bc31f849f5cd803824ddaa3bf566a17006.tar.gz astro-245632bc31f849f5cd803824ddaa3bf566a17006.tar.zst astro-245632bc31f849f5cd803824ddaa3bf566a17006.zip |
Update collections.md (#549)
Updating the Individual Pages from a Collection example to fix a few typos.
- The pokemon API returns an object with an array named `results` (plural)
- `data()` needs to wrap the object in an Array
- accessing item data needs to use `collection.data[0]` to grab data from the `data()` Array
Diffstat (limited to 'docs-www/src/components/DocSidebar.tsx')
0 files changed, 0 insertions, 0 deletions