0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-13 07:21:40 -05:00

🐛 Fix regression with library svgs

This commit is contained in:
Alejandro Alonso 2023-01-20 11:01:22 +01:00
parent be74cd2c7b
commit 2f188e7fb4

View file

@ -147,7 +147,7 @@
(defn extract-svg-attrs
[render-id svg-defs svg-attrs]
(if (and (empty? svg-defs) (empty? svg-attrs))
[nil nil]
[{} {}]
(let [replace-id (fn [id]
(if (contains? svg-defs id)
(str render-id "-" id)