Skip to content

Commit

Permalink
fix(createProjectService): replace all spaces with underscore (#1862)
Browse files Browse the repository at this point in the history
  • Loading branch information
NSUWAL123 authored Nov 11, 2024
1 parent f629087 commit ae49ac9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/frontend/src/api/CreateProjectService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ const GenerateProjectFilesService = (url: string, projectData: any, formUpload:
try {
let response;
const additional_entities: string[] =
projectData?.additional_entities?.length > 0 ? [projectData?.additional_entities?.[0].replace(' ', '_')] : [];
projectData?.additional_entities?.length > 0
? [projectData?.additional_entities?.[0]?.replaceAll(' ', '_')]
: [];
if (projectData.form_ways === 'custom_form') {
// TODO move form upload to a separate service / endpoint?
const generateApiFormData = new FormData();
Expand Down

0 comments on commit ae49ac9

Please sign in to comment.