Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: erroring table of contents (#27826)

Charis2f6328ea3caf
diff --git a/apps/docs/components/GuidesTableOfContents.tsx b/apps/docs/components/GuidesTableOfContents.tsx
index 40d368a0f5b..31756b9ff9d 100644
--- a/apps/docs/components/GuidesTableOfContents.tsx
+++ b/apps/docs/components/GuidesTableOfContents.tsx
@@ -99,7 +99,7 @@ const GuidesTableOfContents = ({
return { text, link, level } as Partial<TOCHeader>
})
- .filter((x): x is TOCHeader => !!x.text && !!x.link && !!x.level)
+ .filter((x): x is TOCHeader => !!x && !!x.text && !!x.link && !!x.level)
setTocList(newHeadings)
})