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 eb61aca commit b4ee5d1Copy full SHA for b4ee5d1
model-datastructure/src/commonMain/kotlin/org/modelix/datastructures/model/HistoryIndexNode.kt
@@ -201,7 +201,7 @@ data class HistoryIndexLeafNode(
201
other.time < time -> otherObj.concatBalanced(self)
202
other.time > time -> self.concatBalanced(otherObj)
203
else -> HistoryIndexLeafNode(
204
- versions = (versions.associateBy { it.getHash() } + other.versions.associateBy { it.getHash() }).values.toList(),
+ versions = (versions + other.versions).distinctBy { it.getHash() }.toList(),
205
authors = authors + other.authors,
206
time = time,
207
).asObject(self.graph).let { IStream.of(it) }
0 commit comments