Skip to content

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

Update ActionBar.tsx

Jonathan Summers-Muir328d72eda642
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ActionBar.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ActionBar.tsx
index c4b5ba2a49c..4a5df6029fb 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ActionBar.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ActionBar.tsx
@@ -34,7 +34,7 @@ const ActionBar: FC<ActionBarProps> = ({
return (
<div className="border-scale-500 flex w-full justify-between space-x-3 border-t px-3 py-4">
- <Button size="small" onClick={closePanel} type="default">
+ <Button size="small" onClick={closePanel} type="default" htmlType="button">
{backButtonLabel}
</Button>
@@ -53,7 +53,7 @@ const ActionBar: FC<ActionBarProps> = ({
) : !hideApply ? (
// New solution, when using the Form component, loading is handled by the Form itself
// Does not require applyFunction() callback
- <Button size="small" disabled={disableApply} loading={loading}>
+ <Button size="small" disabled={disableApply} loading={loading} htmlType="submit">
{applyButtonLabel}
</Button>
) : (