Skip to content

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

Add guard in DisplayProjectSettings

Joshen Lim516a4fc104be
diff --git a/studio/components/to-be-cleaned/DisplayProjectSettings.tsx b/studio/components/to-be-cleaned/DisplayProjectSettings.tsx
index a7623816f3e..525c59d966a 100644
--- a/studio/components/to-be-cleaned/DisplayProjectSettings.tsx
+++ b/studio/components/to-be-cleaned/DisplayProjectSettings.tsx
@@ -39,7 +39,7 @@ export const DisplayApiSettings = () => {
// Get the API service
const apiService = (data?.services ?? []).find((x: any) => x.app.id == API_SERVICE_ID)
- const apiKeys = apiService.service_api_keys
+ const apiKeys = apiService?.service_api_keys ?? []
return (
<ApiContentWrapper>