mirror of
https://github.com/logseq/logseq.git
synced 2026-05-28 06:34:34 +00:00
fix: pasting a first time block ref fails in file graph
This commit is contained in:
@@ -2092,7 +2092,7 @@
|
||||
(cond->> new-content
|
||||
(not keep-uuid?) (property-file/remove-property-when-file-based repo format "id")
|
||||
true (property-file/remove-property-when-file-based repo format "custom_id"))]
|
||||
(merge (apply dissoc block (conj (when-not keep-uuid? [:block/_refs]) :block/pre-block? :block/meta))
|
||||
(merge (apply dissoc block (conj (if-not keep-uuid? [:block/_refs] []) :block/pre-block? :block/meta))
|
||||
(cond->
|
||||
{:block/page {:db/id (:db/id page)}
|
||||
:block/title new-content}
|
||||
|
||||
Reference in New Issue
Block a user