Browse Source

Adding a possible fix for #4179.

master
Michael Drury 5 years ago
parent
commit
95e0c1aa1f
  1. 2
      packages/server/src/api/controllers/row/ExternalRequest.ts

2
packages/server/src/api/controllers/row/ExternalRequest.ts

@ -525,7 +525,7 @@ module External {
const linkTable = this.getTable(tableId)
// @ts-ignore
const linkPrimary = linkTable.primary[0]
const rows = related[key].rows || []
const rows = related[key]?.rows || []
const found = rows.find(
(row: { [key: string]: any }) =>
row[linkPrimary] === relationship.id ||

Loading…
Cancel
Save