Skip to content

Commit

Permalink
chore: Fix missing child in heritage
Browse files Browse the repository at this point in the history
The filter was wrongly added to the method.
  • Loading branch information
Chrylo committed Mar 14, 2024
1 parent 505b13a commit 4975b33
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,7 @@ val VssNode.parentClassName: String
* big collection.
*/
val VssNode.heritage: Collection<VssNode>
get() = children.toList() + children
.filterIsInstance<VssBranch>()
.flatMap { it.heritage }
get() = children.toList() + children.flatMap { it.heritage }

/**
* Finds the latest generation in the form of [VssSignal] for the current [VssNode].
Expand Down

0 comments on commit 4975b33

Please sign in to comment.