0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 00:40:30 -05:00

🐛 Fix internal error on inspect svg

This commit is contained in:
Alejandro Alonso 2024-04-11 09:55:54 +02:00 committed by Alonso Torres
parent 66845033ab
commit 87d0c2ac30

View file

@ -27,7 +27,7 @@
[:& copy-button {:data (map->css value)}]] [:& copy-button {:data (map->css value)}]]
(for [[attr-key attr-value] value] (for [[attr-key attr-value] value]
[:& svg-attr {:attr attr-key :value attr-value :key (str/join "svg-key-" attr-key)}])] [:& svg-attr {:attr attr-key :value attr-value :key (str/join "svg-key-" (d/name attr-key))}])]
(let [attr-name (as-> attr $ (let [attr-name (as-> attr $
(d/name $) (d/name $)
@ -45,8 +45,7 @@
[{:keys [shape]}] [{:keys [shape]}]
[:* [:*
(for [[attr-key attr-value] (:svg-attrs shape)] (for [[attr-key attr-value] (:svg-attrs shape)]
[:& svg-attr {:attr attr-key :value attr-value :key (str/join "svg-block-key" attr-key)}])]) [:& svg-attr {:attr attr-key :value attr-value :key (str/join "svg-block-key-" (d/name attr-key))}])])
(mf/defc svg-panel (mf/defc svg-panel
[{:keys [shapes]}] [{:keys [shapes]}]