Skip to content

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

fix: table editor mobile view (#38539)

Charisbb5861f5a13e
diff --git a/apps/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx b/apps/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
index 6d6c2c19d93..24cbb07735b 100644
--- a/apps/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
+++ b/apps/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
@@ -95,6 +95,10 @@ export const TableEditorMenu = () => {
id,
})
+ if (selectedTable?.schema && !selectedSchema) {
+ setSelectedSchema(selectedTable.schema)
+ }
+
const tableEditorTabsCleanUp = useTableEditorTabsCleanUp()
const onSelectExportCLI = async (id: number) => {
@@ -107,12 +111,6 @@ export const TableEditorMenu = () => {
setTableToExport(supaTable)
}
- useEffect(() => {
- if (selectedTable?.schema) {
- setSelectedSchema(selectedTable.schema)
- }
- }, [selectedTable?.schema])
-
useEffect(() => {
// Clean up tabs + recent items for any tables that might have been removed outside of the dashboard session
if (entityTypes && !searchText) {