Sfoglia il codice sorgente

fix: make header component reactive on user/info state

rcmerci 3 anni fa
parent
commit
6320217175
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/main/frontend/components/header.cljs

+ 1 - 0
src/main/frontend/components/header.cljs

@@ -152,6 +152,7 @@
   [{:keys [open-fn current-repo default-home new-block-mode]}]
   [{:keys [open-fn current-repo default-home new-block-mode]}]
   (let [repos (->> (state/sub [:me :repos])
   (let [repos (->> (state/sub [:me :repos])
                    (remove #(= (:url %) config/local-repo)))
                    (remove #(= (:url %) config/local-repo)))
+        _ (state/sub [:user/info :UserGroups])
         electron-mac? (and util/mac? (util/electron?))
         electron-mac? (and util/mac? (util/electron?))
         show-open-folder? (and (nfs/supported?)
         show-open-folder? (and (nfs/supported?)
                                (or (empty? repos)
                                (or (empty? repos)