Skip to content

Commit

Permalink
some housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
horatiorosa committed Nov 6, 2024
1 parent 7fe467c commit d41b0aa
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions client/app/components/projects/new.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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,
Expand All @@ -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();
});
Expand Down

0 comments on commit d41b0aa

Please sign in to comment.