mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 07:29:08 -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]
|
(letfn [(fix-component [components id component]
|
||||||
(let [root-shape (ctst/get-shape component (:id component))]
|
(let [root-shape (ctst/get-shape component (:id component))]
|
||||||
(if (or (empty? (:objects component))
|
(if (or (empty? (:objects component))
|
||||||
(nil? root-shape))
|
(nil? root-shape)
|
||||||
|
(nil? (:type root-shape)))
|
||||||
(dissoc components id)
|
(dissoc components id)
|
||||||
components)))]
|
components)))]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue