diff --git a/app/src/stores/relations.ts b/app/src/stores/relations.ts index f3c0da0f2f..b4bdb0e655 100644 --- a/app/src/stores/relations.ts +++ b/app/src/stores/relations.ts @@ -52,7 +52,10 @@ export const useRelationsStore = createStore({ } const relations: Relation[] = this.getRelationsForCollection(collection).filter((relation: Relation) => { - return relation.many_field === field || relation.one_field === field; + return ( + (relation.many_collection === collection && relation.many_field === field) || + (relation.one_collection === collection && relation.one_field === field) + ); }); if (relations.length > 0) {