diff --git a/apps/docs/components/reference/RefEducationSection.tsx b/apps/docs/components/reference/RefEducationSection.tsx index 82724b6a991..fcfc0638cfb 100644 --- a/apps/docs/components/reference/RefEducationSection.tsx +++ b/apps/docs/components/reference/RefEducationSection.tsx @@ -13,10 +13,10 @@ const MDX_GLOBAL_CONFIG = { const RefEducationSection = (props) => { const Component = useMemo( () => - props.markdownContent.content - ? getMDXComponent(props.markdownContent.content, MDX_GLOBAL_CONFIG) + props.markdownContent?.content + ? getMDXComponent(props.markdownContent?.content, MDX_GLOBAL_CONFIG) : '', - [props.markdownContent.content] + [props.markdownContent?.content] ) // gracefully reject pages we can't render