Skip to content

Commit 9fc5c7f

Browse files
committed
re-frame: fix append-data
1 parent 9e06c07 commit 9fc5c7f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frameworks/keyed/re-frame/src/demo/main.cljs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@
8181
(let [start (::max-id db 0)
8282
ids (range (inc start) (+ start n 1))
8383
new-data
84-
(into {} (map #(into [%] {:id % :label (random-label)}) ids))]
84+
(map #(vector % {:id %
85+
:label (random-label)})
86+
ids)]
8587
(-> db
8688
(assoc ::max-id (+ start n))
8789
(update ::data-ids into ids)

0 commit comments

Comments
 (0)