From d41b0aa22c83d3fcc69a602a1567acb38d756157 Mon Sep 17 00:00:00 2001 From: horatio Date: Wed, 6 Nov 2024 10:13:51 -0500 Subject: [PATCH] some housekeeping --- client/app/components/projects/new.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/client/app/components/projects/new.js b/client/app/components/projects/new.js index 8755dee6..a6f8c7aa 100644 --- a/client/app/components/projects/new.js +++ b/client/app/components/projects/new.js @@ -59,7 +59,6 @@ export default class ProjectsNewFormComponent extends Component { }); await projectModel.save(); - console.log('new project?', projectModel); const projects = await this.store.findAll('project'); const sortedProjects = projects.sortBy('createdAt').reverse(); @@ -91,7 +90,11 @@ export default class ProjectsNewFormComponent extends Component { const verifiedContacts = await Promise.all(verifiedContactPromises); - const applicantRoleCodes = [DCPAPPLICANTROLE.PRIMARY_CONTACT.code, DCPAPPLICANTROLE.PRIMARY_APPLICANT.code]; + const applicantRoleCodes = [ + DCPAPPLICANTROLE.PRIMARY_CONTACT.code, + DCPAPPLICANTROLE.PRIMARY_APPLICANT.code, + ]; + const applicants = applicantRoleCodes.map((code) => { const applicant = this.store.createRecord('project-applicant', { dcpApplicantrole: code, @@ -111,11 +114,6 @@ export default class ProjectsNewFormComponent extends Component { (applicant) => mostRecentProject.projectApplicants.pushObject(applicant), ); applicants.forEach((applicant) => { - console.log('applicant', applicant); - console.log( - 'mostRecentProject.projectApplicants', - mostRecentProject.projectApplicants, - ); applicant.mostRecentProject = mostRecentProject; applicant.save(); });