mirror of
https://github.com/penpot/penpot.git
synced 2026-03-10 04:06:10 +00:00
🐛 Ensure :shapes attr on importing an svg with an empty group
This commit should not not be backported to, because the affected code is already refactored and the issue is already fixed on develop branch
This commit is contained in:
@@ -57,6 +57,11 @@
|
||||
cts/default-frame-attrs
|
||||
cts/default-shape-attrs)
|
||||
|
||||
default-attrs (if (or (= :group (:type attrs))
|
||||
(= :bool (:type attrs)))
|
||||
(assoc default-attrs :shapes [])
|
||||
default-attrs)
|
||||
|
||||
selected-non-frames
|
||||
(into #{} (comp (map (d/getf objects))
|
||||
(remove cph/frame-shape?))
|
||||
|
||||
Reference in New Issue
Block a user