Skip to content

Commit 4019dad

Browse files
committed
fix: pasted nodes are selected in reverse
1 parent 2264b06 commit 4019dad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/stores/document/reducers/clipboard/paste-node/paste-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ export const pasteNode = (
3838
invariant(nextNode);
3939
return {
4040
nextNode,
41-
rootNodes: branches.map((b) => b.nodeId),
41+
rootNodes: branches.map((b) => b.nodeId).reverse(),
4242
};
4343
};

0 commit comments

Comments
 (0)