Skip to content

Commit

Permalink
deep copy attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
humdrum committed May 21, 2024
1 parent ba2cf9f commit b8eeff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Document/CRDT/CRDTTree.swift
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ final class CRDTTreeNode: IndexTreeNode {
if self.type == DefaultTreeNodeType.text.rawValue {
clone.value = self.value
}
clone.attrs = self.attrs
clone.attrs = self.attrs?.deepcopy()
clone.innerChildren = self.innerChildren.compactMap { child in
let childClone = child.deepcopy()
childClone?.parent = clone
Expand Down

0 comments on commit b8eeff9

Please sign in to comment.