From 51a0d66491796a326c1a3d92f35d52c6cec219fb Mon Sep 17 00:00:00 2001 From: Isaac Johnston Date: Wed, 24 Feb 2021 23:10:08 +1300 Subject: [PATCH] Fix logging of source-url --- src/re_com/debug.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/re_com/debug.cljs b/src/re_com/debug.cljs index b12c40ed..131173b3 100644 --- a/src/re_com/debug.cljs +++ b/src/re_com/debug.cljs @@ -144,7 +144,7 @@ (defn log-validate-args-error [element problems component-name {:keys [file line] :as src}] - (let [source-url (when root-url-for-compiler-output (str root-url-for-compiler-output file ":" line))] + (let [source-url (when (not (empty? root-url-for-compiler-output)) (str root-url-for-compiler-output file ":" line))] (js/console.group (str "%c" collision-icon " re-com validation error ") h1-style) (if src (if source-url