mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 19:06:21 +00:00
enhance: undo redo use patches instead of full text
This commit is contained in:
@@ -436,11 +436,9 @@
|
||||
remove-properties nil
|
||||
auto-save? false}
|
||||
:as opts}]
|
||||
(let [value value
|
||||
repo (or repo (state/get-current-repo))
|
||||
(let [repo (or repo (state/get-current-repo))
|
||||
e (db/entity repo [:block/uuid uuid])
|
||||
block (assoc (with-block-meta repo block)
|
||||
;; (into {} ...) to fix the old data
|
||||
:block/properties (into {} (:block/properties e)))
|
||||
format (or format (state/get-preferred-format))
|
||||
page (db/entity repo (:db/id page))
|
||||
|
||||
Reference in New Issue
Block a user