use :compute-new-refs? to replace the last undo

This commit is contained in:
Konstantinos Kaloutas
2023-03-08 15:50:26 +02:00
committed by Gabriel Horner
parent acd41f71dd
commit e9da7e49f3
3 changed files with 7 additions and 6 deletions

View File

@@ -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))