We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b26d86e commit b33cb82Copy full SHA for b33cb82
src/homebase/js.cljs
@@ -85,9 +85,11 @@
85
(defn js->schema [schema]
86
(let [schema (js->clj schema)]
87
(reduce (fn js->schema-reducer [acc [nms nm k :as p]]
88
- (let [v (get str->schema-key (get-in schema p))
89
- k (get str->schema-key k)]
90
- (assoc-in acc [(js->key nms nm) k] v)))
+ (if-not (and nms nm k)
+ acc
+ (let [v (get str->schema-key (get-in schema p))
91
+ k (get str->schema-key k)]
92
+ (assoc-in acc [(js->key nms nm) k] v))))
93
{} (u/paths schema))))
94
95
(comment
0 commit comments