From b4c00586a050cbc46bd0e365bfdf5a231643e673 Mon Sep 17 00:00:00 2001 From: Trillium Smith Date: Wed, 6 Sep 2023 17:33:37 -0700 Subject: [PATCH] feat: Add missing fields to add/edit form hflaWebsiteUrl, githubIdentifier --- client/src/api/ProjectApiService.js | 4 ++++ client/src/components/manageProjects/editProject.js | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/client/src/api/ProjectApiService.js b/client/src/api/ProjectApiService.js index 949bd5ee..f25711c0 100644 --- a/client/src/api/ProjectApiService.js +++ b/client/src/api/ProjectApiService.js @@ -31,6 +31,8 @@ class ProjectApiService { githubUrl, slackUrl, googleDriveUrl, + hflaWebsiteUrl, + githubIdentifier, } = projectData; const requestOptions = { method: 'POST', @@ -42,6 +44,8 @@ class ProjectApiService { githubUrl, slackUrl, googleDriveUrl, + hflaWebsiteUrl, + githubIdentifier, projectStatus: 'Active', }), }; diff --git a/client/src/components/manageProjects/editProject.js b/client/src/components/manageProjects/editProject.js index 079b38bf..23d0b92d 100644 --- a/client/src/components/manageProjects/editProject.js +++ b/client/src/components/manageProjects/editProject.js @@ -25,11 +25,11 @@ const EditProject = ({ name: projectToEdit.name, description: projectToEdit.description, location: projectToEdit.location, - // githubIdentifier: projectToEdit.name, + githubIdentifier: projectToEdit.githubIdentifier, githubUrl: projectToEdit.githubUrl, slackUrl: projectToEdit.slackUrl, googleDriveUrl: projectToEdit.googleDriveUrl, - // hflaWebsiteUrl: projectToEdit.name, + hflaWebsiteUrl: projectToEdit.hflaWebsiteUrl, }); // eslint-disable-next-line no-unused-vars