Another small fix.

This commit is contained in:
mike12345567 2024-10-03 16:24:54 +01:00
parent 86846eff3f
commit 6fb844753b
1 changed files with 6 additions and 4 deletions

View File

@ -211,10 +211,12 @@ class LinkController {
linkedSchema?.type === FieldType.LINK && linkedSchema?.type === FieldType.LINK &&
linkedSchema?.relationshipType === RelationshipType.ONE_TO_MANY linkedSchema?.relationshipType === RelationshipType.ONE_TO_MANY
) { ) {
let links = await getLinkDocuments({ let links = (
tableId: field.tableId, await getLinkDocuments({
rowId: linkId, tableId: field.tableId,
}).filter( rowId: linkId,
})
).filter(
link => link =>
link.id !== row._id && link.fieldName === linkedSchema.name link.id !== row._id && link.fieldName === linkedSchema.name
) )