diff --git a/content/docs/faq-ajax.md b/content/docs/faq-ajax.md index 74a9a81e..636332b5 100644 --- a/content/docs/faq-ajax.md +++ b/content/docs/faq-ajax.md @@ -100,7 +100,7 @@ function MyComponent() { .then( (result) => { setIsLoaded(true); - setItems(result.items); + setItems(result); }, // Note: it's important to handle errors here // instead of a catch() block so that we don't swallow