🐛 Fix unhandled exception on using decimals on stroke row (#8405)

This commit is contained in:
Andrey Antukh 2026-03-04 09:47:14 +01:00 committed by GitHub
parent a4351d133b
commit c3f5117757
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,12 +94,12 @@
(mf/use-fn
(mf/deps index on-stroke-width-change)
(fn [value]
(if (or (string? value) (int? value))
(if (or (string? value) (number? value))
(on-stroke-width-change index value)
(do
(st/emit! (dwta/toggle-token {:token (first value)
:attrs #{:stroke-width}
:shape-ids ids}))))))
(st/emit! (dwta/toggle-token {:token (first value)
:attrs #{:stroke-width}
:shape-ids ids})))))
stroke-alignment (or (:stroke-alignment stroke) :center)