Browse Source

fix: switch repo error for the new db graph

charlie 1 year ago
parent
commit
ffbadb0f6d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/frontend/handler/repo.cljs

+ 1 - 1
src/main/frontend/handler/repo.cljs

@@ -186,7 +186,7 @@
    (p/let [config (migrate-db-config config/config-default-content)
            _ (persist-db/<new full-graph-name {:config config})
            _ (start-repo-db-if-not-exists! full-graph-name)
-           _ (state/add-repo! {:url full-graph-name})
+           _ (state/add-repo! {:url full-graph-name :root (config/get-local-dir full-graph-name)})
            _ (restore-and-setup-repo! full-graph-name)
            _ (when-not file-graph-import? (route-handler/redirect-to-home!))
            _ (repo-config-handler/set-repo-config-state! full-graph-name config/config-default-content)