mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 23:49:45 -05:00
🐛 Properly handle nil values on style conversion.
This commit is contained in:
parent
b816e0ed32
commit
67138ac629
1 changed files with 2 additions and 1 deletions
|
@ -30,7 +30,7 @@
|
|||
(number? v) (str "n:" v)
|
||||
(keyword? v) (str "k:" (name v))
|
||||
(map? v) (str "m:" (t/encode v))
|
||||
|
||||
(nil? v) (str "z:null")
|
||||
:else (str "o:" v)))
|
||||
|
||||
(defn decode-style-value
|
||||
|
@ -41,6 +41,7 @@
|
|||
"n:" (js/Number (subs v 2))
|
||||
"k:" (keyword (subs v 2))
|
||||
"m:" (t/decode (subs v 2))
|
||||
"z:" nil
|
||||
"o:" (subs v 2)
|
||||
v)))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue