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:
parent
cfe6fae77d
commit
ab0b3c71a8
1 changed files with 2 additions and 1 deletions
|
@ -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)))]
|
||||
|
||||
|
|
Loading…
Reference in a new issue