Fix sql relationship fetching
This commit is contained in:
parent
7e4097476e
commit
7c778061e5
|
@ -124,9 +124,11 @@ export async function buildSqlFieldList(
|
||||||
([columnName, column]) =>
|
([columnName, column]) =>
|
||||||
column.type !== FieldType.LINK &&
|
column.type !== FieldType.LINK &&
|
||||||
column.type !== FieldType.FORMULA &&
|
column.type !== FieldType.FORMULA &&
|
||||||
!existing.find((field: string) => field === columnName)
|
!existing.find(
|
||||||
|
(field: string) => field === `${table.name}.${columnName}`
|
||||||
|
)
|
||||||
)
|
)
|
||||||
.map(column => `${table.name}.${column[0]}`)
|
.map(([columnName]) => `${table.name}.${columnName}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
let fields: string[] = []
|
let fields: string[] = []
|
||||||
|
|
Loading…
Reference in New Issue