Adding a possible fix for #4179.

This commit is contained in:
Michael Drury 2022-01-25 21:35:11 +00:00
parent e96b2b4d42
commit 95e0c1aa1f
1 changed files with 1 additions and 1 deletions

View File

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