From 87dd04a890d31171b1cdad0ae7529060cfeca730 Mon Sep 17 00:00:00 2001 From: Vincent Cantin Date: Tue, 1 Jan 2019 14:00:39 +0800 Subject: [PATCH] Fixed the compilation error which happened when no name was provided. --- src/devcards/core.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/devcards/core.clj b/src/devcards/core.clj index 6c4897b..365e680 100644 --- a/src/devcards/core.clj +++ b/src/devcards/core.clj @@ -151,9 +151,9 @@ (defmacro defcard-rg [& exprs] (when (utils/devcards-active?) (let [[vname docu main initial-data options] (parse-card-args exprs 'reagent-card)] - (card vname docu `(devcards.core/reagent ~main) initial-data (assoc - options - :watch-atom false))))) + (card vname docu `(devcards.core/reagent ~main) initial-data `(assoc + ~options + :watch-atom false))))) ;; om helpers