Don't reenable the submit button after an error
This commit is contained in:
parent
d45b9d1ff5
commit
a303de95a4
|
@ -85,7 +85,6 @@ export default function TaskShow() {
|
||||||
successCallback: processSubmitResult,
|
successCallback: processSubmitResult,
|
||||||
failureCallback: (error: any) => {
|
failureCallback: (error: any) => {
|
||||||
addError(error);
|
addError(error);
|
||||||
setDisabled(false);
|
|
||||||
},
|
},
|
||||||
httpMethod: 'PUT',
|
httpMethod: 'PUT',
|
||||||
postBody: dataToSubmit,
|
postBody: dataToSubmit,
|
||||||
|
|
Loading…
Reference in New Issue