put setDisabled back in the awkward place since i was seeing the subsequent form stay disabled

This commit is contained in:
burnettk 2023-02-03 17:31:14 -05:00
parent 6bd9fa5c00
commit 7dc5a96f99
1 changed files with 1 additions and 1 deletions

View File

@ -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) {