The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix wrapper create for those without foreign schema support (#37581)
Joshen Lim333e11f5f02a
diff --git a/apps/studio/components/interfaces/Integrations/Wrappers/CreateWrapperSheet.tsx b/apps/studio/components/interfaces/Integrations/Wrappers/CreateWrapperSheet.tsxindex d3884048740..54cd8ce1247 100644--- a/apps/studio/components/interfaces/Integrations/Wrappers/CreateWrapperSheet.tsx+++ b/apps/studio/components/interfaces/Integrations/Wrappers/CreateWrapperSheet.tsx@@ -144,16 +144,16 @@ export const CreateWrapperSheet = ({}setFormErrors(errors)- if (!isEmpty(errors)) {- return- }+ if (!isEmpty(errors)) returntry {- await createSchema({- projectRef: project?.ref,- connectionString: project?.connectionString,- name: values.target_schema,- })+ if (selectedMode === 'schema') {+ await createSchema({+ projectRef: project?.ref,+ connectionString: project?.connectionString,+ name: values.target_schema,+ })+ }await createFDW({projectRef: project?.ref,