diff --git a/CHANGES.md b/CHANGES.md index bbb7ec334..3acf56bb6 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 91a886d34..de4a5b381 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