day8/re-frame-10x

vector_index_out_of_bounds Error

Closed this issue · 0 comments

Hi,

Please see screenshots:
s1
s2

I got the following error when I click the replay button with empty data:

router.cljc:200 Uncaught Error: No item -1 in vector of length 0
    at Object.cljs$core$vector_index_out_of_bounds [as vector_index_out_of_bounds] (core.cljs:5342)
    at Object.cljs$core$array_for [as array_for] (core.cljs:5366)
    at cljs.core.PersistentVector.cljs$core$IIndexed$_nth$arity$2 (core.cljs:5530)
    at Function.cljs.core.nth.cljs$core$IFn$_invoke$arity$2 (core.cljs:1855)
    at Object.day8$re_frame_10x$utils$utils$last_in_vec [as last_in_vec] (utils.cljs:8)
    at events.cljs:716
    at events.cljs:716
    at mranderson047$re_frame$v0v10v2$re_frame$std_interceptors$db_handler__GT_interceptor_$_db_handler_before (std_interceptors.cljc:110)
    at Object.mranderson047$re_frame$v0v10v2$re_frame$interceptor$invoke_interceptor_fn [as invoke_interceptor_fn] (interceptor.cljc:67)
    at Object.mranderson047$re_frame$v0v10v2$re_frame$interceptor$invoke_interceptors [as invoke_interceptors] (interceptor.cljc:105)