Skip to content

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

remove wrapper editor form

Alaister Young3d4fb09696d8
diff --git a/studio/components/interfaces/Database/Wrappers/WrapperEditor.tsx b/studio/components/interfaces/Database/Wrappers/WrapperEditor.tsx
index 80cd41394d8..5cfe1bc88c0 100644
--- a/studio/components/interfaces/Database/Wrappers/WrapperEditor.tsx
+++ b/studio/components/interfaces/Database/Wrappers/WrapperEditor.tsx
@@ -92,37 +92,31 @@ const WrapperEditor = ({ visible, wrapper, onCancel }: WrapperEditorProps) => {
}
}}
>
- <Form initialValues={initialValues} validate={validate} onSubmit={onSubmit}>
- {({ isSubmitting, values }: any) => {
- return (
- <div className="py-6">
- <SidePanel.Content>
- <div className="space-y-10">
- {wrapper.server.options.map((option) => (
- <Input
- key={option.name}
- id={option.name}
- name={option.name}
- label={option.label}
- defaultValue={option.defaultValue ?? ''}
- required={option.required ?? false}
- layout="horizontal"
- />
- ))}
-
- {newTables.map((table, i) => (
- <div key={i}>{table.table_name}</div>
- ))}
-
- <Button type="default" onClick={() => setIsAddTableOpen(true)}>
- Add table
- </Button>
- </div>
- </SidePanel.Content>
- </div>
- )
- }}
- </Form>
+ <div className="py-6">
+ <SidePanel.Content>
+ <div className="space-y-10">
+ {wrapper.server.options.map((option) => (
+ <Input
+ key={option.name}
+ id={option.name}
+ name={option.name}
+ label={option.label}
+ defaultValue={option.defaultValue ?? ''}
+ required={option.required ?? false}
+ layout="horizontal"
+ />
+ ))}
+
+ {newTables.map((table, i) => (
+ <div key={i}>{table.table_name}</div>
+ ))}
+
+ <Button type="default" onClick={() => setIsAddTableOpen(true)}>
+ Add table
+ </Button>
+ </div>
+ </SidePanel.Content>
+ </div>
</SidePanel>
<WrapperTableEditor