Fix regression in add repo feature

Fixes: #51
This commit is contained in:
Teemu Patja 2017-04-03 12:18:55 +03:00
parent 37fe9dec91
commit a7f636c956
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
1 changed files with 2 additions and 3 deletions

View File

@ -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