diff --git a/services/web-ui/app/documents/[id]/page.tsx b/services/web-ui/app/documents/[id]/page.tsx index 14e81d7..fa735e0 100644 --- a/services/web-ui/app/documents/[id]/page.tsx +++ b/services/web-ui/app/documents/[id]/page.tsx @@ -71,10 +71,10 @@ export default function DocumentPage() { )} - {doc.frontmatter?.summary && ( + {doc.frontmatter && typeof doc.frontmatter === 'object' && 'summary' in doc.frontmatter && (

Summary

-

{doc.frontmatter.summary as string}

+

{String((doc.frontmatter as Record).summary)}

)}