                                           (after-update #(.focus (.getElementById js/document "focus"))))}]]
               [:div {:style {:marginBottom "0.25em"}}
                 [comps/Button {:text "Download Attributes"
-                               :onClick #(utils/set-access-token-cookie @access-token)
+                               :onClick #(utils/set-access-token-cookie @utils/access-token)
                                :href (str (config/api-url-root) "/cookie-authed/workspaces/"
                                           (:namespace (:workspace-id props)) "/"
                                           (:name (:workspace-id props)) "/exportAttributesTSV")

    [clojure.string :refer [join trim split]]
    [dmohs.react :as react]
    [org.broadinstitute.firecloud-ui.common.components :as comps]
    [org.broadinstitute.firecloud-ui.common.style :as style]
    [org.broadinstitute.firecloud-ui.common.table :as table]
    [org.broadinstitute.firecloud-ui.common.table-utils :as table-utils]
    [org.broadinstitute.firecloud-ui.common.icons :as icons]
    [org.broadinstitute.firecloud-ui.common.modal :as modal]
    [org.broadinstitute.firecloud-ui.page.workspace.data.import-data :as import-data]
    [org.broadinstitute.firecloud-ui.utils :as utils :refer [access-token]]
    [org.broadinstitute.firecloud-ui.config :as config]
    [org.broadinstitute.firecloud-ui.utils :as utils]
    ))


                                            :content [:div {:style {:width 720}}
                                                      [import-data/Page (merge (select-keys props [:workspace-id])
                                                                               {:reload (fn [] (modal/pop-modal) ((:request-refresh props)) )}
                                                                               {:import-type "workspace-attributes"})]]}])}]])
           [table/Table
            {:key (str editing? (count (:attributes @state)))
             :reorderable-columns? false :sortable-columns? (not editing?) :filterable? false :pagination :none
