fix(fs): avoid nil repo on ios

This commit is contained in:
Andelf
2023-03-16 12:08:23 +08:00
parent a051ded28e
commit f1404fd537
11 changed files with 50 additions and 44 deletions

View File

@@ -1143,7 +1143,8 @@
[{:keys [t current-repo db-restoring? nfs-granted?]}]
(rum/use-effect!
(fn []
(when (and (not db-restoring?)
(when (and (not-empty current-repo)
(not db-restoring?)
(or (not util/nfs?) nfs-granted?))
(ui-handler/exec-js-if-exists-&-allowed! t)))
[current-repo db-restoring? nfs-granted?])