We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38e2735 commit 3d34d38Copy full SHA for 3d34d38
model-sync-lib/src/commonMain/kotlin/org/modelix/model/sync/ModelExporter.kt
@@ -24,9 +24,7 @@ fun INode.asExported() : NodeData {
24
role = roleInParent,
25
properties = getPropertyRoles().associateWithNotNull { getPropertyValue(it) }.filterKeys { it != idKey },
26
references = getReferenceRoles().associateWithNotNull {
27
- getReferenceTarget(it)?.let { node ->
28
- node.getPropertyValue(idKey) ?: node.reference.serialize()
29
- }
+ getReferenceTarget(it)?.getPropertyValue(idKey) ?: getReferenceTargetRef(it)?.serialize()
30
},
31
children = allChildren.map { it.asExported() }
32
)
0 commit comments