show task submitting error messages to users w/ burnettk

This commit is contained in:
jasquat 2022-09-15 09:29:06 -04:00
parent b9812b99cf
commit 0f34698d06
1 changed files with 2 additions and 0 deletions

View File

@ -37,11 +37,13 @@ export default function TaskShow() {
};
const handleFormSubmit = (event: any) => {
setErrorMessage('');
const dataToSubmit = event.formData;
delete dataToSubmit.isManualTask;
HttpService.makeCallToBackend({
path: `/tasks/${params.process_instance_id}/${params.task_id}`,
successCallback: processSubmitResult,
failureCallback: setErrorMessage,
httpMethod: 'PUT',
postBody: dataToSubmit,
});