   (println "show-edit-form" id "||" name "||" show-edit "||" @show-edit)
   (reset! edit-tea-id (second id))
   (reset! edit-tea (second name))
+  (reset! edit-tea-snap (second name))
   (swap! show-edit not))
 
 (defn tealister

  [:div.form-group 
   [:div.row
    [:div.col-md-12
     [:form 
      [:input.form-control {:field :text :id :change-tea :value @edit-tea :on-change #(reset! edit-tea (-> % .-target .-value))}]
      [:input {:type "submit" :value "Update Tea Name" :on-click #(update-tea @edit-tea-id @edit-tea)}]]
     [:input {:type "button" :value "Delete this tea" :on-click #(delete-tea @edit-tea)}]]]])

;; this passes the value of the new tea atom into the post-to-teas-db function


(def new-tea (atom nil))
(def edit-tea-id (reagent/atom nil))
(def edit-tea (reagent/atom nil))
(def edit-tea-snap (reagent/atom nil))
(def show-edit (reagent/atom false))

(defn get-teas [] (ajax/GET "/api/teas" :handler (fn [response] (reset! teas-list response))))
