mirror of
https://github.com/penpot/penpot.git
synced 2025-06-08 18:31:40 +02:00
Fix image uploading broken in previous commits.
This commit is contained in:
parent
841e178c15
commit
720178c03f
1 changed files with 1 additions and 2 deletions
|
@ -180,8 +180,7 @@
|
||||||
(defrecord ImageCreated [item]
|
(defrecord ImageCreated [item]
|
||||||
rs/UpdateEvent
|
rs/UpdateEvent
|
||||||
(-apply-update [_ state]
|
(-apply-update [_ state]
|
||||||
(update-in state [:image-colls-by-id (:collection item) :images]
|
(update state :images-by-id assoc (:id item) item)))
|
||||||
#(conj % item))))
|
|
||||||
|
|
||||||
(defn image-created
|
(defn image-created
|
||||||
[item]
|
[item]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue