Skip to content

Commit

Permalink
Merge pull request #943 from hotosm/fix/customform_uploadissue
Browse files Browse the repository at this point in the history
Fix/customform uploadissue
  • Loading branch information
varun2948 authored Oct 31, 2023
2 parents 76466fe + 194be55 commit 2f28588
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/frontend/src/components/createnewproject/SplitTasks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const SplitTasks = ({ flag, geojsonFile, setGeojsonFile, customLineUpload, custo
odk_central_password: projectDetails.odk_central_password,
},
// dont send xform_title if upload custom form is selected
xform_title: projectDetails.formWays === 'custom_form' ? null : projectDetails.formCategorySelection,
xform_title: projectDetails.formCategorySelection,
dimension: projectDetails.dimension,
splitting_algorithm: splitTasksSelection,
form_ways: projectDetails.formWays,
Expand Down Expand Up @@ -136,10 +136,10 @@ const SplitTasks = ({ flag, geojsonFile, setGeojsonFile, customLineUpload, custo
}),
);
} else if (splitTasksSelection === 'task_splitting_algorithm') {
const a = document.createElement('a');
a.href = URL.createObjectURL(drawnGeojsonFile);
a.download = 'test.json';
a.click();
// const a = document.createElement('a');
// a.href = URL.createObjectURL(drawnGeojsonFile);
// a.download = 'test.json';
// a.click();
dispatch(
TaskSplittingPreviewService(
`${import.meta.env.VITE_API_URL}/projects/task_split`,
Expand Down

0 comments on commit 2f28588

Please sign in to comment.