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