chore: easy to use for get-file-sync-state

This commit is contained in:
Tienson Qin
2022-09-15 23:01:59 +08:00
committed by Andelf
parent de092405a9
commit 1edf70de8a

View File

@@ -1764,8 +1764,11 @@ Similar to re-frame subscriptions"
(defn get-file-sync-manager []
(:file-sync/sync-manager @state))
(defn get-file-sync-state [repo]
(get-in @state [:file-sync/sync-state repo]))
(defn get-file-sync-state
([]
(get-file-sync-state (get-current-repo)))
([repo]
(get-in @state [:file-sync/sync-state repo])))
(defn reset-parsing-state!
[]