Skip to content

Commit

Permalink
Merge pull request #1774 from BLSQ/IA-3649-create-submission
Browse files Browse the repository at this point in the history
IA-3649: Can not create a new instance of a form on staging
  • Loading branch information
quang-le authored Nov 5, 2024
2 parents 6861e81 + 299deb4 commit f14ba4d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hat/assets/js/apps/Iaso/domains/instances/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ import { errorSnackBar, succesfullSnackBar } from '../../constants/snackBars';
* 5. After submission Enketo/Backend redirect to the submission detail page
* See enketo/README.md for full details.
*/
export const createInstance = (currentForm, payload) => {
// if (!payload.period) delete payload.period;
export const createInstance = payload => {
return postRequest('/api/enketo/create/', {
org_unit_id: payload.org_unit,
form_id: currentForm.id,
form_id: payload.currentInstance.id,
period: payload.period,
}).then(
// Redirect the browser to Enketo
Expand Down

0 comments on commit f14ba4d

Please sign in to comment.