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?.relationshipType === RelationshipType.ONE_TO_MANY
) {
let links = await getLinkDocuments({
tableId: field.tableId,
rowId: linkId,
}).filter(
let links = (
await getLinkDocuments({
tableId: field.tableId,
rowId: linkId,
})
).filter(
link =>
link.id !== row._id && link.fieldName === linkedSchema.name
)