Skip to content

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

stop showing database settings error state while loading

Alaister Young4be598099f3a
diff --git a/studio/pages/project/[ref]/settings/database.tsx b/studio/pages/project/[ref]/settings/database.tsx
index e90306c5934..529ff88fd6c 100644
--- a/studio/pages/project/[ref]/settings/database.tsx
+++ b/studio/pages/project/[ref]/settings/database.tsx
@@ -235,9 +235,9 @@ const DownloadCertificate: FC<any> = ({ createdAt }) => {
}
const GeneralSettings: FC<any> = ({ projectRef }) => {
- const { data, error, isLoading, isSuccess } = useProjectSettingsQuery({ projectRef })
+ const { data, isLoading, isError } = useProjectSettingsQuery({ projectRef })
- if (error || !isSuccess) {
+ if (isError) {
return (
<div className="mx-auto p-6 text-center sm:w-full md:w-3/4">
<p className="text-scale-1000">Error loading database settings</p>