0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 00:01:51 -05:00

🐛 Fix performance problem with import SVG

This commit is contained in:
alonso.torres 2022-05-10 17:00:22 +02:00 committed by Andrés Moya
parent 40de8781ef
commit af6a687187

View file

@ -414,7 +414,6 @@
new-shape (dwc/make-new-shape shape objects selected)
changes (-> changes
(pcb/with-objects objects)
(pcb/add-object new-shape)
(pcb/change-parent parent-id [new-shape] index))
@ -467,6 +466,7 @@
;; Creates the root shape
new-shape (dwc/make-new-shape root-shape objects selected)
changes (-> (pcb/empty-changes it page-id)
(pcb/with-objects objects)
(pcb/add-object new-shape))
root-attrs (-> (:attrs svg-data)