Skip to content

Commit

Permalink
docs(blog): Fix (#10001)
Browse files Browse the repository at this point in the history
some `entires` had photos => some `entries` had photos
  • Loading branch information
Tien Pham authored and pieh committed Nov 17, 2018
1 parent 6ff091d commit 20015c2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -164,7 +164,7 @@ query PhotoQuery {

## More complex pages

The list of Tricks & Commands presented a complex challenge because not all entries on Contentful included the same content. For example, we got errors if we tried to query for a photo since some entires had photos and some did not.
The list of Tricks & Commands presented a complex challenge because not all entries on Contentful included the same content. For example, we got errors if we tried to query for a photo since some entries had photos and some did not.

Because each entry was inconsistent, my friends helped me figure out a way to use JS to make sure we only requested a photo to be printed IF the photo existed. And if a particular entry didn't have a photo, the computer could forgive it (just this once). Here is the code from that page:

Expand Down

0 comments on commit 20015c2

Please sign in to comment.