Skip to content

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

fix for old site

Jonathan Summers-Muir5c8f233ad2f0
diff --git a/apps/docs/pages/_app.tsx b/apps/docs/pages/_app.tsx
index 75acbbce28b..6165bf91575 100644
--- a/apps/docs/pages/_app.tsx
+++ b/apps/docs/pages/_app.tsx
@@ -40,7 +40,8 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout) {
if (!url.includes('reference/')) {
// scroll container div to top
const container = document.getElementById('docs-content-container')
- container.scrollTop = 0
+ // check container exists (only avail on new docs)
+ if (container) container.scrollTop = 0
}
}
}