@@ -66,7 +66,7 @@
:margin "0 0 0 20px"
:child
[re-com/button
- :label "+"
+ :label "+ add"
:class "btn-primary btn-block"
:on-click #(re-frame/dispatch [::events/select-selecting (count (:tasks @schedule-data))])]]])]))
@@ -24,9 +24,11 @@
(update-in
db
[:schedule :tasks]
- (partial map-indexed #(if (= %1 which)
- (update %2 :complete? not)
- %2)))))
+ (comp
+ vec
+ (partial map-indexed #(if (= %1 which)
+ (update %2 :complete? not)
+ %2))))))
(re-frame/reg-event-fx
::select-task