diff --git a/src/re_frame/undo.cljs b/src/re_frame/undo.cljs index 32f1519..b493da4 100644 --- a/src/re_frame/undo.cljs +++ b/src/re_frame/undo.cljs @@ -53,10 +53,10 @@ "Stores the value currently in app-db, so the user can later undo" [explanation] (clear-redos!) - (reset! undo-list (vec (take + (reset! undo-list (vec (take-last @max-undos (conj @undo-list @app-db)))) - (reset! undo-explain-list (vec (take + (reset! undo-explain-list (vec (take-last @max-undos (conj @undo-explain-list @app-explain)))) (reset! app-explain explanation))