mirror of
https://github.com/penpot/penpot.git
synced 2026-09-06 20:18:39 +00:00
Add backward compatibility for read previous point format on transit.
This commit is contained in:
parent
c1591d85cb
commit
d1210304af
@ -30,7 +30,9 @@
|
|||||||
(def point-read-handler
|
(def point-read-handler
|
||||||
(t/read-handler
|
(t/read-handler
|
||||||
(fn [value]
|
(fn [value]
|
||||||
(gpt/map->Point value))))
|
(if (array? value)
|
||||||
|
(gpt/point (vec value))
|
||||||
|
(gpt/map->Point value)))))
|
||||||
|
|
||||||
(def ^:privare +read-handlers+
|
(def ^:privare +read-handlers+
|
||||||
{"u" uuid
|
{"u" uuid
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user