0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 08:11:30 -05:00

🐛 Fix bug on images collections filtering.

This commit is contained in:
Andrey Antukh 2019-11-25 17:28:25 +01:00
parent 44a893b46e
commit 1357fed067

View file

@ -72,7 +72,7 @@
ptk/UpdateEvent
(update [_ state]
(reduce (fn [state {:keys [id user] :as item}]
(let [type (if (uuid/zero? (:user item)) :builtin :own)
(let [type (if (uuid/zero? (:user-id item)) :builtin :own)
item (assoc item :type type)]
(assoc-in state [:images-collections id] item)))
state