Close swap panel after doing a swap

This commit is contained in:
Pablo Alba 2025-04-24 13:19:40 +02:00 committed by Pablo Alba
parent 1f0644ea91
commit 916eb530a0

View file

@ -346,7 +346,9 @@
(mf/use-fn
(mf/deps shapes file-id item)
#(when-not loop
(st/emit! (dwl/component-multi-swap shapes file-id (:id item)))))
(st/emit!
(dwl/component-multi-swap shapes file-id (:id item))
(dwsp/clear-specialized-panel))))
item-ref (mf/use-ref)
visible? (h/use-visible item-ref :once? true)]