Skip to content

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

ResolvedTheme in GraphiQL (#18848)

Francesco Sansalvadorec7fe3e307e8c
diff --git a/studio/pages/project/[ref]/database/graphiql.tsx b/studio/pages/project/[ref]/database/graphiql.tsx
index e01d54d1a2b..3dcfec5dd06 100644
--- a/studio/pages/project/[ref]/database/graphiql.tsx
+++ b/studio/pages/project/[ref]/database/graphiql.tsx
@@ -18,8 +18,8 @@ import { NextPageWithLayout } from 'types'
const GraphiQLPage: NextPageWithLayout = () => {
const { ref: projectRef } = useParams()
const { ui, meta } = useStore()
- const { theme } = useTheme()
- const currentTheme = theme === 'dark' ? 'dark' : 'light'
+ const { resolvedTheme } = useTheme()
+ const currentTheme = resolvedTheme === 'dark' ? 'dark' : 'light'
const isExtensionsLoading = meta.extensions.isLoading
const pgGraphqlExtension = meta.extensions.byId('pg_graphql')