remove duplicate logic about identify whether it's cut paste

This commit is contained in:
Mega Yu
2023-06-12 23:13:10 +08:00
committed by Tienson Qin
parent 49f88d3ad1
commit 70c9bb10b8
3 changed files with 2 additions and 7 deletions

View File

@@ -184,10 +184,8 @@
(if (seq copied-blocks)
;; Handle internal paste
(let [revert-cut-txs (get-revert-cut-txs copied-blocks)
cut-paste? (boolean (seq revert-cut-txs))
keep-uuid? (= (state/get-block-op-type) :cut)]
(editor-handler/paste-blocks copied-blocks {:revert-cut-txs revert-cut-txs
:cut-paste? cut-paste?
:keep-uuid? keep-uuid?}))
(paste-copied-text input text html)))
(p/catch (fn [error]