🐛 Fix regression on shape rendering (#9762)

caused by previous merge
This commit is contained in:
Andrey Antukh 2026-05-20 11:58:34 +02:00 committed by GitHub
parent ead9bd9ccc
commit 565ed042bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,19 +107,19 @@
props #js {:shape shape :thumbnail? thumbnail?}]
(when (and (some? shape)
(not ^boolean (:hidden shape)))
[:> wrapper-elem wrapper-props
(case shape-type
:path [:> path/path-wrapper* props]
:text [:> text/text-wrapper props]
:group [:> group-wrapper props]
:rect [:> rect-wrapper props]
:image [:> image-wrapper props]
:circle [:> circle-wrapper props]
:svg-raw [:> svg-raw-wrapper props]
:bool [:> bool-wrapper props]
:frame [:> nested-frame-wrapper props]
nil)])))
(mf/html
[:> wrapper-elem wrapper-props
(case shape-type
:path [:> path/path-wrapper* props]
:text [:> text/text-wrapper props]
:group [:> group-wrapper props]
:rect [:> rect-wrapper props]
:image [:> image-wrapper props]
:circle [:> circle-wrapper props]
:svg-raw [:> svg-raw-wrapper props]
:bool [:> bool-wrapper props]
:frame [:> nested-frame-wrapper props]
nil)]))))
(mf/defc root-frame-shape-wrapper
{::mf/wrap [#(mf/memo' % common/check-shape-props)]