🐛 Fix showing warning when no shape is selected (#8515)

This commit is contained in:
Eva Marco
2026-03-04 10:58:36 +01:00
committed by GitHub
parent e1d556f4aa
commit cc3033735b

View File

@@ -140,10 +140,11 @@
(if (and not-editing? (seq selected-shapes) (not= (:type token) :number))
(st/emit! (dwta/toggle-token {:token token
:shape-ids selected-ids}))
(st/emit! (ntf/show {:content (tr "workspace.tokens.error-text-edition")
:type :toast
:level :warning
:timeout 3000}))))))]
(when (seq selected-shapes)
(st/emit! (ntf/show {:content (tr "workspace.tokens.error-text-edition")
:type :toast
:level :warning
:timeout 3000})))))))]
[:div {:class (stl/css :token-section-wrapper)
:data-testid (dm/str "section-" (name type))}