put setDisabled back in the awkward place since i was seeing the subsequent form stay disabled
This commit is contained in:
parent
6bd9fa5c00
commit
7dc5a96f99
|
@ -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