Skip to content

Commit edd226b

Browse files
committed
fix: opposite relations not computed on self
1 parent f183409 commit edd226b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/core/src/collection.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,6 @@ export function resolveCollectionOppositeRelations(collections: ResolvedCollecti
195195
collection.oppositeRelations = {}
196196
const indexes = new Map<string, string[]>()
197197
for (const otherCollection of collections) {
198-
if (otherCollection.name === collection.name) {
199-
continue
200-
}
201198
for (const relationKey in otherCollection.normalizedRelations) {
202199
const relation = otherCollection.normalizedRelations[relationKey]!
203200
for (const target of relation.to) {

0 commit comments

Comments
 (0)