                        :methodName method-name
                        :methodVersion new-snapshot-id}]
        (swap! state assoc :blocker "Updating...")
-       (utils/log "METHOD REF")
-       (utils/log method-ref)
        (react/call :load-agora-method (@refs "methodDetailsViewer") {:namespace method-namespace
                                                           :name method-name
                                                           :snapshotId new-snapshot-id})

                 [comps/SidebarButton {:color :exception-state :margin :top
                                       :text "Cancel Editing" :icon :cancel
                                       :onClick (fn []
                                                  (this :load-new-method-template (utils/log (:prev-snapshot-id @state)))
                                                  (swap! state assoc :editing? false))}]))]))]))
   :-render-main
   (fn [{:keys [state this]}]

     (react/call :load-agora-method this props state))
   :load-agora-method
   (fn [{:keys [state]} method-ref]
     (endpoints/call-ajax-orch
      {:endpoint (endpoints/get-agora-method (:namespace method-ref) (:name method-ref) (:snapshotId method-ref))
       :headers utils/content-type=json
