mirror of
https://github.com/penpot/penpot.git
synced 2025-05-11 08:16:37 +02:00
Fix unexpected exception on persisting first time color collections.
This commit is contained in:
parent
cba8e6341d
commit
5fade8bb93
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@
|
||||||
(-apply-watch [_ state stream]
|
(-apply-watch [_ state stream]
|
||||||
(let [builtin? #(= :builtin (:type %))
|
(let [builtin? #(= :builtin (:type %))
|
||||||
xform (remove (comp builtin? second))
|
xform (remove (comp builtin? second))
|
||||||
version (get state ::version)
|
version (or (get state ::version) -1)
|
||||||
value (->> (get state :colors-collections)
|
value (->> (get state :colors-collections)
|
||||||
(into {} xform))
|
(into {} xform))
|
||||||
store {:key "color-collections"
|
store {:key "color-collections"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue