                {})
        :children))
 
-(defn artifacts-node [artifacts owner {:keys [show-node-indices? admin?] :as opts}]
+(defn artifacts-node [{:keys [artifacts admin?] :as data} owner {:keys [show-node-indices?] :as opts}]
   (reify
     om/IRender
     (render [_]

                  tag)
                [:div {:style (when closed? {:display "none"})}
                 (om/build artifacts-node
                           children
                           {:opts (assoc opts
                                    :ancestors-closed? (or (:ancestors-closed? opts) closed?))})]]))
           (sort-by first artifacts))])))))

                               :else              part)
                   url        (:url artifact)
                   tag        (if (and url (not admin?)) ; Be extra careful about XSS of admins
                                [:a.artifact-link {:href (:url artifact) :target "_blank"} text]
                                [:span.artifact-directory-text text])
                   key        (keyword (str "index-" idx))
                   closed?    (or
                               (:ancestors-closed? opts)
