Skip to content

Commit

Permalink
fix(frontend): add form_category for osm data extract post params
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Feb 8, 2024
1 parent 9596efd commit eff2bdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/frontend/src/components/createnewproject/DataExtract.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ const DataExtract = ({ flag, customLineUpload, setCustomLineUpload, customPolygo
const dataExtractRequestFormData = new FormData();
const projectAoiGeojsonFile = getFileFromGeojson(projectAoiGeojson);
dataExtractRequestFormData.append('geojson_file', projectAoiGeojsonFile);
dataExtractRequestFormData.append('form_category', projectDetails.formCategorySelection);

// Set flatgeobuf as loading
dispatch(CreateProjectActions.SetFgbFetchingStatus(true));
Expand Down Expand Up @@ -127,7 +128,7 @@ const DataExtract = ({ flag, customLineUpload, setCustomLineUpload, customPolygo
dispatch(
CommonActions.SetSnackBar({
open: true,
message: 'Error to generate FGB file.',
message: 'Error generating data extract.',
variant: 'error',
duration: 2000,
}),
Expand Down

0 comments on commit eff2bdd

Please sign in to comment.