Przeglądaj źródła

fix: p/then's argument needs to be a fn

close #4648
Tienson Qin 3 lat temu
rodzic
commit
534c63a7b0
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/main/frontend/handler.cljs

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

@@ -131,8 +131,8 @@
                                  (js/console.error "Failed to request GitHub app tokens."))))
 
                             (watch-for-date!)
-                            (file-handler/watch-for-current-graph-dir!)))
-                         (p/then (state/pub-event! [:graph/ready (state/get-current-repo)]))
+                            (file-handler/watch-for-current-graph-dir!)
+                            (state/pub-event! [:graph/ready (state/get-current-repo)])))
                          (p/catch (fn [error]
                                     (log/error :exception error))))))
         interval-id (js/setInterval inner-fn 50)]