                    {:name (get-workspace-name-string ws)
                     :status (:status ws)
                     :onClick #((:onWorkspaceSelected props) (ws "workspace"))}
-                   (get-in ws ["workspace" "attributes" "description"])
+                   (get-workspace-description ws)
                    (get-in ws ["accessLevel"])])}]))})
 
 

           :content-renderer (fn [data] [WorkspaceCell {:data data}])}
          {:header "Description" :starting-width (* max-description-length 10)
           :content-renderer (fn [description]
                               [:div {:style {:padding "1.1em 0 0 14px"
                                              :fontStyle (when-not description "oblique")}}
                                (or description "No description provided")])}
          {:header "Access Level"  :starting-width 150
           :sort-by #(case % "OWNER" 0 "WRITER" 1 "READER" 2) :sort-initial :asc
           :content-renderer

  (apply max (map count (map #(get-workspace-name-string %) workspaces))))

(defn- get-workspace-description [ws]
  (or (get-in ws ["workspace" "attributes" "description"]) "No description provided"))

(defn- get-max-workspace-description-length [workspaces]
  (apply max (map count (map #(get-workspace-description %) workspaces))))

(react/defc WorkspaceTable
  {:render
