mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 17:36:33 +00:00
fix: duplicated blocks when editing
This commit is contained in:
@@ -423,10 +423,7 @@
|
||||
(:start-pos meta)
|
||||
(:end-pos meta))}
|
||||
;; Preserve the original block id
|
||||
(when (and (zero? idx)
|
||||
;; not custom-id
|
||||
(not (get-in block [:block/properties "custom_id"]))
|
||||
(not (get-in block [:block/properties "id"])))
|
||||
(when (zero? idx)
|
||||
{:block/uuid uuid})
|
||||
(when (seq ref-pages)
|
||||
{:block/ref-pages
|
||||
|
||||
Reference in New Issue
Block a user