diff --git a/docs/source/tutorial/queries.mdx b/docs/source/tutorial/queries.mdx index 39d688027..509e66682 100644 --- a/docs/source/tutorial/queries.mdx +++ b/docs/source/tutorial/queries.mdx @@ -85,9 +85,7 @@ const Launches: React.FC = () => { return (
- {data.launches && - data.launches.launches && - data.launches.launches.map((launch: any) => ( + {data?.launches?.launches?.map((launch: any) => ( ))} @@ -137,8 +135,7 @@ Copy the code below and add it before the closing `` tag in the `Laun ```tsx:title=src/pages/launches.tsx -{data.launches && - data.launches.hasMore && ( +{data?.launches?.hasMore && (