mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 00:10:11 -05:00
Add backward compatibility for read previous point format on transit.
This commit is contained in:
parent
c1591d85cb
commit
d1210304af
1 changed files with 3 additions and 1 deletions
|
@ -30,7 +30,9 @@
|
|||
(def point-read-handler
|
||||
(t/read-handler
|
||||
(fn [value]
|
||||
(gpt/map->Point value))))
|
||||
(if (array? value)
|
||||
(gpt/point (vec value))
|
||||
(gpt/map->Point value)))))
|
||||
|
||||
(def ^:privare +read-handlers+
|
||||
{"u" uuid
|
||||
|
|
Loading…
Reference in a new issue