mirror of
https://github.com/penpot/penpot.git
synced 2025-05-16 06:16:10 +02: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
|
(modal/show
|
||||||
{:type :export
|
{:type :export
|
||||||
:team-id team-id
|
:team-id team-id
|
||||||
|
:has-libraries? (->> files (some :has-libraries?))
|
||||||
:files files})))))))]
|
:files files})))))))]
|
||||||
|
|
||||||
(mf/use-effect
|
(mf/use-effect
|
||||||
|
|
|
@ -182,6 +182,7 @@
|
||||||
:ref render-ref
|
:ref render-ref
|
||||||
:xmlns "http://www.w3.org/2000/svg"
|
:xmlns "http://www.w3.org/2000/svg"
|
||||||
:xmlnsXlink "http://www.w3.org/1999/xlink"
|
:xmlnsXlink "http://www.w3.org/1999/xlink"
|
||||||
|
:xmlns:penpot "https://penpot.app/xmlns"
|
||||||
:preserveAspectRatio "xMidYMid meet"
|
:preserveAspectRatio "xMidYMid meet"
|
||||||
:key (str "render" page-id)
|
:key (str "render" page-id)
|
||||||
:width (:width vport 0)
|
:width (:width vport 0)
|
||||||
|
|
|
@ -190,7 +190,7 @@
|
||||||
(dissoc :stroke-color-ref-id :stroke-color-ref-file)
|
(dissoc :stroke-color-ref-id :stroke-color-ref-file)
|
||||||
|
|
||||||
(not= file-id (get-component-ref-file objects shape))
|
(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))
|
(= :text (:type shape))
|
||||||
(update :content detach-text)))
|
(update :content detach-text)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue