mirror of
https://github.com/penpot/penpot.git
synced 2026-03-19 08:53:39 +00:00
🐛 Improve fixing root shapes for v1 components on migration to v2
This commit is contained in:
committed by
Andrey Antukh
parent
cfe6fae77d
commit
ab0b3c71a8
@@ -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)))]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user