From 15ff57ffa12fc618c08b58eb92b27305ff7f46cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Gr=C3=BCneberg?= Date: Sat, 20 Jul 2024 18:39:30 +0800 Subject: [PATCH] Update RefEducationSection.tsx --- apps/docs/components/reference/RefEducationSection.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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