Fix unexpected behavior on image collection renaming.

This commit is contained in:
Andrey Antukh 2016-05-24 21:12:55 +03:00
parent 2df37e3ba2
commit fa98c544cc
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -103,7 +103,7 @@
(defrecord CollectionUpdated [item] (defrecord CollectionUpdated [item]
rs/UpdateEvent rs/UpdateEvent
(-apply-update [_ state] (-apply-update [_ state]
(sti/assoc-collection state item))) (update-in state [:images-by-id (:id item)] merge item)))
(defn collection-updated (defn collection-updated
[item] [item]