0
Fork 0
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:
Andrey Antukh 2016-11-13 17:26:17 +01:00
parent c1591d85cb
commit d1210304af
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -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