Remove @ts-ignore

This commit is contained in:
adrinr 2023-02-24 11:26:05 +01:00
parent 045822d65e
commit d5fd635d6c
1 changed files with 3 additions and 4 deletions

View File

@ -613,14 +613,13 @@ export class ExternalRequest {
const { key, tableId, isUpdate, id, ...rest } = relationship
const body: { [key: string]: any } = processObjectSync(rest, row, {})
const linkTable = this.getTable(tableId)
// @ts-ignore
const linkPrimary = linkTable?.primary[0]
const relationshipPrimary = linkTable?.primary || []
const linkPrimary = relationshipPrimary[0]
if (!linkTable || !linkPrimary) {
return
}
// @ts-ignore
const linkSecondary = linkTable?.primary[1]
const linkSecondary = relationshipPrimary[1]
const rows = related[key]?.rows || []