Merge pull request #5381 from penpot/niwinz-bugfix-1

🐛 Fix incorrect thumbnail rendering on dashboard
This commit is contained in:
Aitor Moreno 2024-11-27 11:48:25 +01:00 committed by GitHub
commit e3d2b99acc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 2 additions and 7 deletions

View file

@ -99,7 +99,7 @@
[{:keys [shape]}]
(let [thumbnails? (mf/use-ctx muc/render-thumbnails)
childs (mapv (d/getf objects) (:shapes shape))]
(if (and thumbnails? (some? (:thumbnail shape)))
(if (and thumbnails? (some? (:thumbnail-id shape)))
[:& frame/frame-thumbnail {:shape shape :bounds (:children-bounds shape)}]
[:& frame-shape {:shape shape :childs childs}])))))

View file

@ -60,7 +60,6 @@
(mf/defc frame-container
{::mf/wrap-props false}
[props]
(let [shape (unchecked-get props "shape")
children (unchecked-get props "children")