Skip to content

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

chore: fix undefined check for type warnings (#46111)

Ali Waseema0b4eeb7702e
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx
index 0df92efc963..714a153ea96 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx
@@ -233,7 +233,7 @@ export const InfrastructureInfo = () => {
<ValidationErrorsWarning validationErrors={data.validation_errors} />
)}
- {showDatabaseUpgrades && data && (
+ {showDatabaseUpgrades && data && data.warnings && (
<ValidationWarningsAdmonition warnings={data.warnings} />
)}
</>