diff --git a/docs/docs/how-to/performance/using-slices.md b/docs/docs/how-to/performance/using-slices.md index b550fa2fc6970..192daa2e4c7dc 100644 --- a/docs/docs/how-to/performance/using-slices.md +++ b/docs/docs/how-to/performance/using-slices.md @@ -123,7 +123,7 @@ In this example, let's say you want to pull all header items from your CMS. const Header = ({ data }) => { return (
- {data.allHeaderItems.nodes.forEach(headerItem = ( + {data.allHeaderItems.nodes.map(headerItem = ( // highlight-next-line {headerItem.text} ))}