Small fix.

This commit is contained in:
mike12345567 2024-10-03 16:22:32 +01:00
parent a6f6942288
commit 86846eff3f
1 changed files with 4 additions and 2 deletions

View File

@ -214,8 +214,10 @@ class LinkController {
let links = await getLinkDocuments({ let links = await getLinkDocuments({
tableId: field.tableId, tableId: field.tableId,
rowId: linkId, rowId: linkId,
fieldName: linkedSchema.name, }).filter(
}) link =>
link.id !== row._id && link.fieldName === linkedSchema.name
)
// check all the related rows exist // check all the related rows exist
const foundRecords = await this._db.getMultiple( const foundRecords = await this._db.getMultiple(