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:
parent
028e1d63a3
commit
1b44fe8fec
3 changed files with 3 additions and 1 deletions
|
@ -153,6 +153,7 @@
|
|||
(modal/show
|
||||
{:type :export
|
||||
:team-id team-id
|
||||
:has-libraries? (->> files (some :has-libraries?))
|
||||
:files files})))))))]
|
||||
|
||||
(mf/use-effect
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)))
|
||||
|
|
Loading…
Add table
Reference in a new issue