Skip to content

Commit 74862e2

Browse files
committed
[nested-v-grid] Fix demo crash
1 parent 7df9a1d commit 74862e2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/re_demo/nested_v_grid.cljs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,9 @@
408408
:do (apply +))
409409
label (str "$" (number-format total-sales
410410
{:precision 2}))
411-
{:keys [banter]} (rand-nth
412-
(group* :country country fake-banter))
411+
{:keys [banter]} (some-> (group* :country country fake-banter)
412+
seq
413+
rand-nth)
413414
{:keys [branch-end?]} (merge column-meta row-meta)]
414415
[:div {:title (str (or name company)
415416
" sold " label (cond product (str " of " product)

0 commit comments

Comments
 (0)