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:
@ -2,6 +2,7 @@ import { gql } from '@apollo/client';
|
||||
|
||||
export const REMOTE_TABLE_FRAGMENT = gql`
|
||||
fragment RemoteTableFields on RemoteTable {
|
||||
id
|
||||
name
|
||||
schema
|
||||
status
|
||||
|
||||
@ -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,
|
||||
})),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user