Skip to content

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

fix: view data button closes foreign key side panel

Joshen Lim5b6ad90212c6
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx
index 328ba81a1a3..f6e0eaba2da 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx
@@ -72,7 +72,7 @@ const InputField: FC<Props> = ({
error={errors[field.name]}
onChange={(event: any) => onUpdateField({ [field.name]: event.target.value })}
actions={
- <Button type="default" onClick={onViewForeignKey} icon={<IconLink />}>
+ <Button type="default" htmlType="button" onClick={onViewForeignKey} icon={<IconLink />}>
View data
</Button>
}