mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 14:14:55 +00:00
fix: import chosen graph
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user