Another small fix.
This commit is contained in:
parent
86846eff3f
commit
6fb844753b
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue