Browse Source

fix: make header component reactive on user/info state

rcmerci 3 years ago
parent
commit
6320217175
1 changed files with 1 additions and 0 deletions
  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]}]
   (let [repos (->> (state/sub [:me :repos])
                    (remove #(= (:url %) config/local-repo)))
+        _ (state/sub [:user/info :UserGroups])
         electron-mac? (and util/mac? (util/electron?))
         show-open-folder? (and (nfs/supported?)
                                (or (empty? repos)