mirror of
https://github.com/penpot/penpot.git
synced 2025-05-11 21:26:37 +02:00
🐛 Fix bug on images collections filtering.
This commit is contained in:
parent
44a893b46e
commit
1357fed067
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@
|
||||||
ptk/UpdateEvent
|
ptk/UpdateEvent
|
||||||
(update [_ state]
|
(update [_ state]
|
||||||
(reduce (fn [state {:keys [id user] :as item}]
|
(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)]
|
item (assoc item :type type)]
|
||||||
(assoc-in state [:images-collections id] item)))
|
(assoc-in state [:images-collections id] item)))
|
||||||
state
|
state
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue