From a7f636c956b6dcc65e2634cb09b6bac9ea77315a Mon Sep 17 00:00:00 2001 From: Teemu Patja Date: Mon, 3 Apr 2017 12:18:55 +0300 Subject: [PATCH] Fix regression in add repo feature Fixes: #51 --- src/cljs/commiteth/handlers.cljs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cljs/commiteth/handlers.cljs b/src/cljs/commiteth/handlers.cljs index 18236b3..ea68a57 100644 --- a/src/cljs/commiteth/handlers.cljs +++ b/src/cljs/commiteth/handlers.cljs @@ -228,8 +228,7 @@ (reg-event-fx :toggle-repo - [(inject-cofx :store)] - (fn [{:keys [db store]} [_ repo]] + (fn [{:keys [db]} [_ repo]] {:db (assoc db :repos (update-repo-state (:repos db) (:full_name repo) @@ -240,7 +239,7 @@ :on-success #(dispatch [:repo-toggle-success %]) :on-error #(dispatch [:repo-toggle-error repo %]) :finally #(println "finally" %) - :params (merge {:token (get-admin-token store)} + :params (merge {:token (get-admin-token db)} (select-keys repo [:id :owner :owner-avatar-url