mirror of
https://github.com/penpot/penpot.git
synced 2026-09-13 15:38:38 +00:00
🐛 Fix problem with empty styles
This commit is contained in:
parent
8ee7915c1d
commit
088a8af345
@ -147,7 +147,7 @@
|
|||||||
(defn extract-svg-attrs
|
(defn extract-svg-attrs
|
||||||
[render-id svg-defs svg-attrs]
|
[render-id svg-defs svg-attrs]
|
||||||
(if (and (empty? svg-defs) (empty? svg-attrs))
|
(if (and (empty? svg-defs) (empty? svg-attrs))
|
||||||
[{} {}]
|
[#js {} #js {}]
|
||||||
(let [replace-id (fn [id]
|
(let [replace-id (fn [id]
|
||||||
(if (contains? svg-defs id)
|
(if (contains? svg-defs id)
|
||||||
(str render-id "-" id)
|
(str render-id "-" id)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user