mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 19:06:21 +00:00
fix: copy paste nested blocks
Related to LOG-3160
This commit is contained in:
@@ -820,7 +820,11 @@
|
||||
#?(:cljs
|
||||
(defn copy-to-clipboard!
|
||||
[text & {:keys [graph html blocks owner-window]}]
|
||||
(let [blocks (map (fn [block] (if (de/entity? block) (into {} block) block)) blocks)
|
||||
(let [blocks (map (fn [block] (if (de/entity? block)
|
||||
(-> (into {} block)
|
||||
;; FIXME: why :db/id is not included?
|
||||
(assoc :db/id (:db/id block)))
|
||||
block)) blocks)
|
||||
data (clj->js
|
||||
(common-util/remove-nils-non-nested
|
||||
{:text text
|
||||
|
||||
Reference in New Issue
Block a user