0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00

🐛 Improve fixing root shapes for v1 components on migration to v2

This commit is contained in:
Alejandro Alonso 2024-03-19 07:32:13 +01:00 committed by Andrey Antukh
parent cfe6fae77d
commit ab0b3c71a8

View file

@ -433,7 +433,8 @@
(letfn [(fix-component [components id component]
(let [root-shape (ctst/get-shape component (:id component))]
(if (or (empty? (:objects component))
(nil? root-shape))
(nil? root-shape)
(nil? (:type root-shape)))
(dissoc components id)
components)))]