소스 검색

refresh when local repo is available

leizhe 3 년 전
부모
커밋
b5096578b3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/frontend/mobile/core.cljs

+ 1 - 1
src/main/frontend/mobile/core.cljs

@@ -46,7 +46,7 @@
                   #(state/pub-event! [:mobile/keyboard-did-show]))
     
     (.addListener App "appStateChange"
-                  #(let [repo (state/get-current-repo)]
+                  #(when-let [repo (state/get-current-repo)]
                      (nfs-handler/refresh! repo repo/refresh-cb)
                      ;; (notification/show! "Notes updated!" :success true)
                      ))))