0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00

🐛 Fix problem when expanding components tab

This commit is contained in:
alonso.torres 2024-03-13 13:29:50 +01:00
parent a6f70c77cb
commit 2a998a2dcc

View file

@ -142,7 +142,7 @@
on-collapsed
(mf/use-fn
(mf/deps file-id section open?)
(mf/deps file-id section open? assets-count)
(fn [_]
(when (< 0 assets-count)
(st/emit! (dw/set-assets-section-open file-id section (not open?))))))