Browse Source

fix: don't show file graphs on mobile

Tienson Qin 3 months ago
parent
commit
f2ea19bbdf
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/main/frontend/components/repo.cljs

+ 5 - 1
src/main/frontend/components/repo.cljs

@@ -159,7 +159,11 @@
         remotes-loading? (state/sub [:file-sync/remote-graphs :loading])
         repos (if (and login? (seq remotes))
                 (repo-handler/combine-local-&-remote-graphs repos remotes) repos)
-        repos (remove #(= (:url %) config/demo-repo) repos)
+        repos (cond->>
+               (remove #(= (:url %) config/demo-repo) repos)
+                (util/mobile?)
+                (keep (fn [item]
+                        (config/db-based-graph? (:url item)))))
         {remote-graphs true local-graphs false} (group-by (comp boolean :remote?) repos)]
     [:div#graphs
      (when-not (util/capacitor-new?)