From 151de33586fc8d29e40951c45cdc85665236c0c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Fri, 29 Apr 2022 11:05:04 +0200 Subject: [PATCH] :wrench: Small fix of debug functions --- frontend/src/debug.cljs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/debug.cljs b/frontend/src/debug.cljs index 1cbd600bf..da8d72764 100644 --- a/frontend/src/debug.cljs +++ b/frontend/src/debug.cljs @@ -91,7 +91,6 @@ (defn ^:export tap "Transducer function that can execute a side-effect `effect-fn` per input" [effect-fn] - (fn [rf] (fn ([] (rf)) @@ -154,13 +153,14 @@ nil) (defn ^:export dump-buffer [] - (logjs "state" @st/last-events) + (logjs "last-events" @st/last-events) nil) (defn ^:export get-state [str-path] (let [path (->> (str/split str-path " ") - (map d/read-string))] - (clj->js (get-in @st/state path))) + (map d/read-string) + vec)] + (js/console.log (clj->js (get-in @st/state path)))) nil) (defn dump-objects'