From a303de95a473a58b77228fdb681792d3d412157e Mon Sep 17 00:00:00 2001 From: Dan Date: Wed, 8 Mar 2023 14:41:12 -0500 Subject: [PATCH] Don't reenable the submit button after an error --- spiffworkflow-frontend/src/routes/TaskShow.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spiffworkflow-frontend/src/routes/TaskShow.tsx b/spiffworkflow-frontend/src/routes/TaskShow.tsx index 53ac8c0c8..07f01dbc0 100644 --- a/spiffworkflow-frontend/src/routes/TaskShow.tsx +++ b/spiffworkflow-frontend/src/routes/TaskShow.tsx @@ -85,7 +85,6 @@ export default function TaskShow() { successCallback: processSubmitResult, failureCallback: (error: any) => { addError(error); - setDisabled(false); }, httpMethod: 'PUT', postBody: dataToSubmit, @@ -270,7 +269,7 @@ export default function TaskShow() { return (
{/* - https://www.npmjs.com/package/@uiw/react-md-editor switches to dark mode by default by respecting @media (prefers-color-scheme: dark) + https://www.npmjs.com/package/@uiw/react-md-editor switches to dark mode by default by respecting @media (prefers-color-scheme: dark) This makes it look like our site is broken, so until the rest of the site supports dark mode, turn off dark mode for this component. */}