Browse Source

fix: don't check ast version for GitHub

Tienson Qin 4 years ago
parent
commit
e89ef6009f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/handler.cljs

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

@@ -115,7 +115,8 @@
 
                             (watch-for-date!)
                             (file-handler/watch-for-local-dirs!)
-                            (state/pub-event! [:after-db-restore repos])))
+                            (when-not (state/logged?)
+                              (state/pub-event! [:after-db-restore repos]))))
                          (p/catch (fn [error]
                                     (log/error :db/restore-failed error))))))]
     ;; clear this interval