fix: onverter issue : background_color

close #1977
This commit is contained in:
Tienson Qin
2021-05-25 16:54:40 +08:00
parent bd57a6ceb8
commit 1f17da3b1f
2 changed files with 11 additions and 6 deletions

View File

@@ -175,12 +175,15 @@
(remove string/blank?))
properties (->> properties
(medley/map-kv (fn [k v]
(let [v (if (coll? v)
(let [k (-> (string/lower-case (name k))
(string/replace " " "-")
(string/replace "_" "-"))
k (if (contains? #{"custom_id" "custom-id"} k)
"id"
k)
v (if (coll? v)
v
(let [k (name k)
v (string/trim v)
k (string/replace k " " "-")
k (string/lower-case k)
(let [v (string/trim v)
v (cond
(= v "true")
true