浏览代码

fix: mobile graphs

Tienson Qin 3 月之前
父节点
当前提交
adb62d9997
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/frontend/components/repo.cljs

+ 2 - 2
src/main/frontend/components/repo.cljs

@@ -162,8 +162,8 @@
         repos (cond->>
                (remove #(= (:url %) config/demo-repo) repos)
                 (util/mobile?)
-                (keep (fn [item]
-                        (config/db-based-graph? (:url item)))))
+                (filter (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?)