Make id available in remote table output (#5003)

Wrongly use `PrimaryGeneratedColumn` typeOrm decorator instead of the
nest query one.

Co-authored-by: Thomas Trompette <thomast@twenty.com>
This commit is contained in:
Thomas Trompette
2024-04-17 17:05:47 +02:00
committed by GitHub
parent 979b8d29cc
commit 6cf3ade300
6 changed files with 19 additions and 15 deletions

View File

@ -2,6 +2,7 @@ import { gql } from '@apollo/client';
export const REMOTE_TABLE_FRAGMENT = gql`
fragment RemoteTableFields on RemoteTable {
id
name
schema
status

View File

@ -38,8 +38,8 @@ export const SettingsIntegrationDatabaseTablesListCard = ({
// We need to use a state because the table status update re-render the whole list of toggles
const [items] = useState(
tables.map((table) => ({
id: table.name,
...table,
id: table.name,
})),
);