                          (om/build invite-teammates-modal {:selected-org (select-keys selected-org [:name :vcs_type :vcs-users])
                                                            :close-fn #(om/set-state! owner :show-invite-modal? false)
                                                            :show-modal? show-invite-modal?})]}
-               (if-let [users (:users selected-org)]
-                 (table (add-follow-counts users (:projects selected-org)))
+               (if (:users selected-org)
+                 (table (select-keys selected-org [:users :projects :admin]))
                  (html [:div.loading-spinner common/spinner])))
               (no-org-selected available-orgs (vcs-utils/bitbucket-enabled? user)))]])))))
 

            [om.core :as om :include-macros true])
  (:require-macros [frontend.utils :refer [component element html]]))

(defn- table [users]
  (om/build table/table
            {:rows users
             :key-fn :login
             :columns [{:header "Login"
                        :cell-fn :login}

                       {:header "Projects Followed"
                        :type #{:right :shrink}
                        :cell-fn ::follow-count}]}))

(defn- no-org-selected [available-orgs bitbucket-enabled?]
  (component

  ;; simple unique id available on the frontend for Om Next.
  [:organization/by-vcs-type-and-name
   [(:vcs_type org) (:login org)]])

;; functions for invite-teammates-modal component state manipulation

