0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00

Fix unexpected exception on persisting first time color collections.

This commit is contained in:
Andrey Antukh 2016-11-08 20:40:35 +01:00
parent cba8e6341d
commit 5fade8bb93
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -116,7 +116,7 @@
(-apply-watch [_ state stream]
(let [builtin? #(= :builtin (:type %))
xform (remove (comp builtin? second))
version (get state ::version)
version (or (get state ::version) -1)
value (->> (get state :colors-collections)
(into {} xform))
store {:key "color-collections"