fix: save db before git commit

experiment/tanstack-table
Tienson Qin 2024-06-15 00:48:57 +08:00
parent 05f14033c4
commit af716b50d4
1 changed files with 6 additions and 3 deletions

View File

@ -9,7 +9,8 @@
[goog.object :as gobj]
[promesa.core :as p]
[rum.core :as rum]
[logseq.shui.ui :as shui]))
[logseq.shui.ui :as shui]
[frontend.persist-db :as persist-db]))
(defn- commit-all!
[]
@ -89,5 +90,7 @@
"Commit")]])]))
(defn show-commit-modal! [e]
(state/set-modal! add-commit-message)
(when e (util/stop e)))
(p/do!
(persist-db/export-current-graph!)
(state/set-modal! add-commit-message)
(when e (util/stop e))))