cut blocks remains uuid

This commit is contained in:
Mega Yu
2023-04-12 16:31:12 +08:00
committed by Tienson Qin
parent c8ed14ef05
commit 730b8e0528
4 changed files with 30 additions and 16 deletions

View File

@@ -185,7 +185,7 @@
;; Handle internal paste
(let [revert-cut-tx (get-revert-cut-tx copied-blocks)
cut-paste? (boolean (seq revert-cut-tx))
keep-uuid? cut-paste?]
keep-uuid? (= (state/get-block-op-type) :cut)]
(editor-handler/paste-blocks copied-blocks {:revert-cut-tx revert-cut-tx
:cut-paste? cut-paste?
:keep-uuid? keep-uuid?}))