0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-27 00:49:28 -05:00

Fix wrong state tranformation on delete icon collection event.

This commit is contained in:
Andrey Antukh 2016-10-21 00:17:27 +02:00
parent 7690a088ab
commit 3cf4a75b93

View file

@ -167,7 +167,7 @@
rs/WatchEvent
(-apply-watch [_ state s]
(let [type (get-in state [:dashboard :images :type])]
(let [type (get-in state [:dashboard :icons :type])]
(->> (rp/req :delete/icon-collection id)
(rx/map #(select-collection type))))))