fix: copy paste not working across graphs

This commit is contained in:
Tienson Qin
2022-05-12 07:20:56 +08:00
parent c480e1808b
commit 3625f6f29b
2 changed files with 9 additions and 3 deletions

View File

@@ -2883,11 +2883,13 @@
[text e]
(let [copied-blocks (state/get-copied-blocks)
copied-block-ids (:copy/block-ids copied-blocks)
copied-graph (:copy/graph copied-blocks)
input (state/get-input)
*stop-event? (atom true)]
(cond
;; Internal blocks by either copy or cut blocks
(and
(= copied-graph (state/get-current-repo))
(or (seq copied-block-ids)
(seq (:copy/full-blocks copied-blocks)))
text