fix: no available handles to import to

This commit is contained in:
Tienson Qin
2023-12-12 19:11:42 +08:00
parent f6dced699d
commit 8c3ec50c07
13 changed files with 44 additions and 53 deletions

View File

@@ -77,10 +77,9 @@
(defn restore-and-setup!
[repo repos]
(when repo
(-> (p/do!
(db-restore/restore-graph! repo)
(repo-config-handler/start {:repo repo})
(op-mem-layer/<init-load-from-indexeddb! repo))
(-> (p/let [_ (db-restore/restore-graph! repo)
_ (repo-config-handler/start {:repo repo})]
(op-mem-layer/<init-load-from-indexeddb! repo))
(p/then
(fn []
(db-listener/listen-and-persist! repo)