From 4b490e3ca462175e0bf3c410aeba1ea7f016f615 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 29 Dec 2021 15:00:38 +0100 Subject: [PATCH] :bug: After team onboarding importing a file will import into the team drafts --- CHANGES.md | 1 + frontend/src/app/main/ui/onboarding/templates.cljs | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index bbb7ec3340..3acf56bb6c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -16,6 +16,7 @@ - Fix problems with team management [#1353](https://github.com/penpot/penpot/issues/1353) - Fix problem when importing in shared libraries [#1362](https://github.com/penpot/penpot/issues/1362) - Fix problem with join nodes [#1422](https://github.com/penpot/penpot/issues/1422) +- After team onboarding importing a file will import into the team drafts [Taiga #2408](https://tree.taiga.io/project/penpot/issue/2408) ### :arrow_up: Deps updates ### :heart: Community contributions by (Thank you!) diff --git a/frontend/src/app/main/ui/onboarding/templates.cljs b/frontend/src/app/main/ui/onboarding/templates.cljs index 91a886d346..de4a5b381a 100644 --- a/frontend/src/app/main/ui/onboarding/templates.cljs +++ b/frontend/src/app/main/ui/onboarding/templates.cljs @@ -61,8 +61,9 @@ ::mf/register-as :onboarding-templates} ;; NOTE: the project usually comes empty, it only comes fullfilled ;; when a user creates a new team just after signup. - [{:keys [project-id] :as props}] - (let [close-fn (mf/use-callback #(st/emit! (modal/hide))) + [props] + (let [project-id (unchecked-get props "project-id") + close-fn (mf/use-callback #(st/emit! (modal/hide))) profile (mf/deref refs/profile) project-id (or project-id (:default-project-id profile))] [:div.modal-overlay