Skip to content

Commit 2702fe2

Browse files
committed
fix(modelql): use concept reference instead of concept
Resolving can potentially throw and we only care about the uid here.
1 parent 3673e14 commit 2702fe2

File tree

1 file changed

+1
-1
lines changed
  • modelql-untyped/src/commonMain/kotlin/org/modelix/modelql/untyped

1 file changed

+1
-1
lines changed

modelql-untyped/src/commonMain/kotlin/org/modelix/modelql/untyped/OfConceptStep.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class OfConceptStep(val conceptUIDs: Set<String>) : MonoTransformingStep<INode?,
3636
override fun createFlow(input: StepFlow<INode?>, context: IFlowInstantiationContext): StepFlow<INode> {
3737
return input.filter {
3838
val value = it.value
39-
value != null && conceptUIDs.contains(value.concept?.getUID())
39+
value != null && conceptUIDs.contains(value.getConceptReference()?.getUID())
4040
} as StepFlow<INode>
4141
}
4242

0 commit comments

Comments
 (0)