   [MethodDetailsViewer
    {:name (get-in config ["methodRepoMethod" "methodName"])
     :namespace (get-in config ["methodRepoMethod" "methodNamespace"])
-    :snapshotId (get-in config ["methodRepoMethod" "methodVersion"])}])
+    :snapshotId (get-in config ["methodRepoMethod" "methodVersion"])
+    :config config
+    }])
 
 
 (defn- render-side-bar [state refs config editing? props]

                                        (when-not success?
                                          (js/alert (str "Exception:\n" (.-statusText xhr)))))})))))})))

(react/defc MethodDetailsViewer
  {:render
   (fn [{:keys [state refs]}]
     [:div {:style {:marginRight "20%"}}
      (cond
        (:loaded-method @state)
        [:div {}
         [comps/EntityDetails
          {:entity (:loaded-method @state)}]]
        (:error @state) (style/create-server-error-message (:error @state))
        :else [:div {}[comps/Spinner {:text "Loading method details..."}]])])
   :component-did-mount
   (fn [{:keys [props state]}]
     (endpoints/call-ajax-orch

    [org.broadinstitute.firecloud-ui.page.workspace.method-configs.delete-config :as delete]
    [org.broadinstitute.firecloud-ui.page.workspace.method-configs.launch-analysis :as launch]
    [org.broadinstitute.firecloud-ui.page.workspace.method-configs.publish :as publish]
    [org.broadinstitute.firecloud-ui.utils :as utils]
    ))

