From 444c616aa2bc374305715958cadb2c04b31574c9 Mon Sep 17 00:00:00 2001 From: Joshen Lim Date: Wed, 10 Jan 2024 20:19:22 +0800 Subject: [PATCH] Include columns when fetching tables in database tables (#20306) * Include columns when fetching tables in database tables * Remove log --- apps/studio/components/interfaces/Database/Tables/TableList.tsx | 1 + .../components/layouts/TableEditorLayout/EntityListItem.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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

Duplicate Table

- +