Skip to content

Commit

Permalink
feat: Add missing fields to add/edit form
Browse files Browse the repository at this point in the history
hflaWebsiteUrl, githubIdentifier
  • Loading branch information
trillium committed Sep 7, 2023
1 parent 058d06c commit b4c0058
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions client/src/api/ProjectApiService.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ class ProjectApiService {
githubUrl,
slackUrl,
googleDriveUrl,
hflaWebsiteUrl,
githubIdentifier,
} = projectData;
const requestOptions = {
method: 'POST',
Expand All @@ -42,6 +44,8 @@ class ProjectApiService {
githubUrl,
slackUrl,
googleDriveUrl,
hflaWebsiteUrl,
githubIdentifier,
projectStatus: 'Active',
}),
};
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/manageProjects/editProject.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b4c0058

Please sign in to comment.