0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-06 04:41:57 -05:00

🐛 Fix add variant menu inside a variant

This commit is contained in:
Pablo Alba 2025-03-04 17:15:34 +01:00 committed by Pablo Alba
parent 8eb2aaa0a8
commit 44f1798dce

View file

@ -417,7 +417,9 @@
do-add-variant do-add-variant
#(when variants? #(when variants?
(st/emit! (dwv/transform-in-variant id))) (if (ctk/is-variant? shape)
(st/emit! (dwv/add-new-variant id))
(st/emit! (dwv/transform-in-variant id))))
do-show-local-component do-show-local-component
#(st/emit! (dwl/go-to-local-component :id component-id)) #(st/emit! (dwl/go-to-local-component :id component-id))