0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-12 07:41:43 -05:00

🐛 Fixed problem when importing flatten components

This commit is contained in:
alonso.torres 2021-07-07 10:56:54 +02:00
parent 028e1d63a3
commit 1b44fe8fec
3 changed files with 3 additions and 1 deletions

View file

@ -153,6 +153,7 @@
(modal/show
{:type :export
:team-id team-id
:has-libraries? (->> files (some :has-libraries?))
:files files})))))))]
(mf/use-effect

View file

@ -182,6 +182,7 @@
:ref render-ref
:xmlns "http://www.w3.org/2000/svg"
:xmlnsXlink "http://www.w3.org/1999/xlink"
:xmlns:penpot "https://penpot.app/xmlns"
:preserveAspectRatio "xMidYMid meet"
:key (str "render" page-id)
:width (:width vport 0)

View file

@ -190,7 +190,7 @@
(dissoc :stroke-color-ref-id :stroke-color-ref-file)
(not= file-id (get-component-ref-file objects shape))
(dissoc :component-file :component-file :shape-ref :component-root)
(dissoc :component-id :component-file :shape-ref :component-root?)
(= :text (:type shape))
(update :content detach-text)))