mirror of
https://github.com/penpot/penpot.git
synced 2025-06-13 16:12:17 +02:00
🐛 Fix SVG attrs are not handled correctly when exporting/importing .zip
This commit is contained in:
parent
68741bb56f
commit
2c506fc721
2 changed files with 2 additions and 1 deletions
|
@ -263,7 +263,7 @@
|
|||
[:*
|
||||
(when (contains? shape :svg-attrs)
|
||||
(let [svg-transform (get shape :svg-transform)
|
||||
svg-attrs (->> shape :svg-attrs keys (mapv d/name) (str/join ","))
|
||||
svg-attrs (->> shape :svg-attrs keys (mapv (comp d/name str/kebab)) (str/join ","))
|
||||
svg-defs (->> shape :svg-defs keys (mapv d/name) (str/join ","))]
|
||||
[:> "penpot:svg-import"
|
||||
#js {:penpot:svg-attrs (when-not (empty? svg-attrs) svg-attrs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue