We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94e392e commit 128e8c7Copy full SHA for 128e8c7
packages/gatsby-theme/src/components/templates/Tutorial.tsx
@@ -20,9 +20,9 @@ const TutorialLayout: React.FunctionComponent<TutorialLayoutProps> = ({
20
}
21
const { pageTitle } = data!.mdx!.frontmatter!;
22
const tutorialTitle = optionalChaining(() => data!.tutorialTitle!.frontmatter!.tutorialTitle!);
23
- const chapters = data!.pageTitles!.edges!.map(
+ const chapters = optionalChaining(() => data!.pageTitles!.edges!.map(
24
a => a.node!.frontmatter!.pageTitle!,
25
- );
+ )) || [];
26
const { location } = props;
27
28
return (
0 commit comments