Don't reenable the submit button after an error

This commit is contained in:
Dan 2023-03-08 14:41:12 -05:00
parent f990f68b03
commit aae54e2875
1 changed files with 1 additions and 2 deletions

View File

@ -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 (
<div className="markdown">
{/*
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.
*/}
<div data-color-mode="light">