put setDisabled back in the awkward place since i was seeing the subsequent form stay disabled
This commit is contained in:
parent
1e399e05bd
commit
8ff42f1b1b
|
@ -42,7 +42,6 @@ export default function TaskShow() {
|
|||
HttpService.makeCallToBackend({
|
||||
path: url,
|
||||
successCallback: (tasks: any) => {
|
||||
setDisabled(false);
|
||||
setUserTasks(tasks);
|
||||
},
|
||||
onUnauthorized: () => {},
|
||||
|
@ -62,6 +61,7 @@ export default function TaskShow() {
|
|||
|
||||
const processSubmitResult = (result: any) => {
|
||||
removeError();
|
||||
setDisabled(false);
|
||||
if (result.ok) {
|
||||
navigate(`/tasks`);
|
||||
} else if (result.process_instance_id) {
|
||||
|
|
Loading…
Reference in New Issue