You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/AdvancedCollectionTableView/DiffableDataSource/NSOutlineView/Snapshot/OutlineViewDiffableDataSourceSnapshot.swift
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -147,11 +147,11 @@ public struct OutlineViewDiffableDataSourceSnapshot<ItemIdentifierType: Hashable
147
147
validateItems(snapshot.items)
148
148
iflet rootIndex = rootItems.firstIndex(of: item){
149
149
rootItems.insert(contentsOf: snapshot.rootItems, at: before ? rootIndex : rootIndex +1)
150
-
nodes.merge(snapshot.nodes)
150
+
nodes.merge(with:snapshot.nodes)
151
151
}elseiflet parentItem =parent(of: item),
152
152
let childIndex =nodes[parentItem]?.children.firstIndex(of: item){
153
153
nodes[parentItem]?.children.insert(contentsOf: snapshot.rootItems, at: before ? childIndex : childIndex +1)
0 commit comments