fix: import chosen graph

This commit is contained in:
Tienson Qin
2024-06-15 01:17:07 +08:00
parent af716b50d4
commit ff050779ec

View File

@@ -90,9 +90,9 @@
(defn import-chosen-graph
[repo]
(p/let [_ (persist-db/<unsafe-delete repo)
_ (persist-db/<fetch-init-data repo)]
(notification/show! "Graph updated!" :success)))
(p/let [_ (persist-db/<unsafe-delete repo)]
(notification/show! "Graph updated!" :success)
(state/pub-event! [:graph/switch repo])))
(defn ^:export replace-graph-with-db-file []
(state/set-state! :ui/open-select :db-graph-replace))