فهرست منبع

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)
                      ))))