Remove @ts-ignore
This commit is contained in:
parent
d13d275165
commit
61f9febc69
|
@ -613,14 +613,13 @@ export class ExternalRequest {
|
||||||
const { key, tableId, isUpdate, id, ...rest } = relationship
|
const { key, tableId, isUpdate, id, ...rest } = relationship
|
||||||
const body: { [key: string]: any } = processObjectSync(rest, row, {})
|
const body: { [key: string]: any } = processObjectSync(rest, row, {})
|
||||||
const linkTable = this.getTable(tableId)
|
const linkTable = this.getTable(tableId)
|
||||||
// @ts-ignore
|
const relationshipPrimary = linkTable?.primary || []
|
||||||
const linkPrimary = linkTable?.primary[0]
|
const linkPrimary = relationshipPrimary[0]
|
||||||
if (!linkTable || !linkPrimary) {
|
if (!linkTable || !linkPrimary) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// @ts-ignore
|
const linkSecondary = relationshipPrimary[1]
|
||||||
const linkSecondary = linkTable?.primary[1]
|
|
||||||
|
|
||||||
const rows = related[key]?.rows || []
|
const rows = related[key]?.rows || []
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue