From 1b44fe8fecfd54b7690b0c22278a42cee937cac5 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 7 Jul 2021 10:56:54 +0200 Subject: [PATCH] :bug: Fixed problem when importing flatten components --- frontend/src/app/main/ui/workspace/header.cljs | 1 + frontend/src/app/main/ui/workspace/viewport.cljs | 1 + frontend/src/app/worker/export.cljs | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/workspace/header.cljs b/frontend/src/app/main/ui/workspace/header.cljs index 8f1bd7a04..e95822115 100644 --- a/frontend/src/app/main/ui/workspace/header.cljs +++ b/frontend/src/app/main/ui/workspace/header.cljs @@ -153,6 +153,7 @@ (modal/show {:type :export :team-id team-id + :has-libraries? (->> files (some :has-libraries?)) :files files})))))))] (mf/use-effect diff --git a/frontend/src/app/main/ui/workspace/viewport.cljs b/frontend/src/app/main/ui/workspace/viewport.cljs index a12d153db..b7743e314 100644 --- a/frontend/src/app/main/ui/workspace/viewport.cljs +++ b/frontend/src/app/main/ui/workspace/viewport.cljs @@ -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) diff --git a/frontend/src/app/worker/export.cljs b/frontend/src/app/worker/export.cljs index 854911c9b..02fae88fe 100644 --- a/frontend/src/app/worker/export.cljs +++ b/frontend/src/app/worker/export.cljs @@ -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)))