Skip to content

Commit

Permalink
Ensure parent must have id
Browse files Browse the repository at this point in the history
  • Loading branch information
garethj2 committed Nov 27, 2024
1 parent c7cfb06 commit 1029a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ export function addContainmentRefs(
namespace.findContainmentRef(namespace.reflect(parent).type.defName)
?.defName ?? ''

if (refName && !dict.has(refName)) {
if (refName && !dict.has(refName) && parent.has('id')) {
dict.set(refName, parent.get('id') as HRef)
}

Expand Down

0 comments on commit 1029a81

Please sign in to comment.