Skip to content

Commit 10a365a

Browse files
olemartinorgOle Martin Handeland
andcommitted
Fixing claim error output after claims was converted to a Set (#3789)
Co-authored-by: Ole Martin Handeland <[email protected]>
1 parent a53adbc commit 10a365a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/form/layout/makeLayoutLookups.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ function canClaimChild(childId: string, parentId: string, lookup: PlainLayoutLoo
206206
}
207207
const otherClaims: string[] = [];
208208
for (const otherParentId in claims) {
209-
if (claims[otherParentId]?.[childId]) {
209+
if (claims[otherParentId]?.has(childId) && otherParentId !== parentId) {
210210
otherClaims.push(otherParentId);
211211
}
212212
}

0 commit comments

Comments
 (0)