Skip to content

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

Include columns when fetching tables in database tables (#20306)

Joshen Lim444c616aa2bc
diff --git a/apps/studio/components/interfaces/Database/Tables/TableList.tsx b/apps/studio/components/interfaces/Database/Tables/TableList.tsx
index 0e726a36861..89d9087f8c3 100644
--- a/apps/studio/components/interfaces/Database/Tables/TableList.tsx
+++ b/apps/studio/components/interfaces/Database/Tables/TableList.tsx
@@ -73,6 +73,7 @@ const TableList = ({
connectionString: project?.connectionString,
schema: snap.selectedSchemaName,
sortByProperty: 'name',
+ includeColumns: true,
},
{
select(tables) {
diff --git a/apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsx b/apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsx
index f463721e03f..9f3066e6e49 100644
--- a/apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsx
+++ b/apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsx
@@ -232,7 +232,7 @@ const EntityListItem = ({ id, projectRef, item: entity, isLocked }: EntityListIt
<IconCopy size="tiny" />
<p>Duplicate Table</p>
</DropdownMenuItem>
- <DropdownMenuItem key="delete-table" className="space-x-2" asChild>
+ <DropdownMenuItem key="view-policies" className="space-x-2" asChild>
<Link
key="view-policies"
href={`/project/${projectRef}/auth/policies?schema=${snap.selectedSchemaName}&search=${entity.id}`}