Skip to content

Commit

Permalink
fix(resolve-symbol): pass through non symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
armed committed Jan 9, 2023
1 parent 7ee0fac commit 9d051a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/k16/gx/beta/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@
(with-err-ctx err-ctx
(if (fn? resolved-props-fn)
(run-props-fn resolved-props-fn dep-nodes-vals)
(impl/postwalk-evaluate
dep-nodes-vals resolved-props props)))
(impl/postwalk-evaluate
dep-nodes-vals resolved-props props)))
validate-error (with-err-ctx err-ctx
(validate-props props-schema props-result))
[error result] (when-not validate-error
Expand Down
5 changes: 3 additions & 2 deletions src/k16/gx/beta/impl.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@

(defn resolve-symbol
[sym]
(when (symbol? sym)
(if (symbol? sym)
(if-let [nss #?(:cljs (namespace-symbol sym)
:clj (try
(some->> sym
Expand All @@ -195,7 +195,8 @@
:exception e}))))]
nss
(gx.err/add-err-cause {:title :symbol-cannot-be-resolved
:data sym}))))
:data sym}))
sym))

(defn form->runnable [form-def]
(let [props* (atom #{})
Expand Down

0 comments on commit 9d051a2

Please sign in to comment.