mirror of
https://github.com/logseq/logseq.git
synced 2026-04-27 15:45:00 +00:00
use :compute-new-refs? to replace the last undo
This commit is contained in:
committed by
Gabriel Horner
parent
acd41f71dd
commit
e9da7e49f3
@@ -147,7 +147,7 @@
|
||||
(set (map :a tx-data))
|
||||
#{:block/created-at :block/updated-at})))
|
||||
(reset-redo)
|
||||
(if (:compute-new-refs? tx-meta)
|
||||
(if (:replace? tx-meta)
|
||||
(let [[removed-e _prev-e] (pop-undo)
|
||||
entity (update removed-e :txs concat tx-data)]
|
||||
(push-undo entity))
|
||||
|
||||
Reference in New Issue
Block a user