0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-04 13:29:14 -05:00

Merge pull request #3472 from penpot/niwinz-staging-hotfix-3

🐛 Ensure :shapes attr on importing an svg with an empty group
This commit is contained in:
Alejandro 2023-07-31 16:33:06 +02:00 committed by GitHub
commit 9c53a33bac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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?))