chore: undo/redo tweaks

This commit is contained in:
Tienson Qin
2021-01-09 23:35:23 +08:00
parent 01cc4d25ae
commit 595f0cfcbb
5 changed files with 57 additions and 49 deletions

View File

@@ -291,7 +291,7 @@
(conn/get-files-conn repo-url)
(conn/get-conn repo-url false)))]
(when (and (seq tx-data) (get-conn))
(let [tx-result (profile "Transact!" (d/transact! (get-conn) (vec tx-data)))
(let [tx-result (d/transact! (get-conn) (vec tx-data))
db (:db-after tx-result)
handler-keys (get-handler-keys handler-opts)]
(doseq [handler-key handler-keys]