fix: sometimes recent not working

This commit is contained in:
Tienson Qin
2021-10-12 22:44:43 +08:00
parent df221dba61
commit 1221256274

View File

@@ -350,6 +350,7 @@
(sub-key-value (state/get-current-repo) key))
([repo-url key]
(when (conn/get-conn repo-url)
(-> (q repo-url [:kv key] {} key key)
react
key))))
(let [m (some-> (q repo-url [:kv key] {} key key) react)]
(if-let [result (get m key)]
result
m)))))