0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-21 12:11:37 -05:00

Load storage collection icons on sidebar icons component is mounted.

This commit is contained in:
Andrey Antukh 2016-11-18 21:19:04 +01:00
parent 98f55d53ff
commit 3e1a7fca69
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -41,6 +41,7 @@
[own]
(let [local (:rum/local own)]
(rs/emit! (udi/fetch-collections))
(rs/emit! (udi/fetch-icons nil))
(add-watch local ::key (fn [_ _ _ {:keys [id]}]
(rs/emit! (udi/fetch-icons id))))
own))