🐛 Fix problem when page deletion and undo.

Related to duplicated page reference in undo page deletion.
This commit is contained in:
Andrey Antukh 2021-07-15 13:48:42 +02:00
parent 7efc1a0366
commit 17ae6bf89d
2 changed files with 22 additions and 16 deletions

View file

@ -141,6 +141,11 @@
(try
(us/assert ::spec/changes redo-changes)
(us/assert ::spec/changes undo-changes)
;; (prn "====== commit-changes ======" path)
;; (cljs.pprint/pprint redo-changes)
;; (cljs.pprint/pprint undo-changes)
(update-in state path cp/process-changes redo-changes false)
(catch :default e