Don't reenable the submit button after an error
This commit is contained in:
parent
d45b9d1ff5
commit
a303de95a4
|
@ -85,7 +85,6 @@ export default function TaskShow() {
|
||||||
successCallback: processSubmitResult,
|
successCallback: processSubmitResult,
|
||||||
failureCallback: (error: any) => {
|
failureCallback: (error: any) => {
|
||||||
addError(error);
|
addError(error);
|
||||||
setDisabled(false);
|
|
||||||
},
|
},
|
||||||
httpMethod: 'PUT',
|
httpMethod: 'PUT',
|
||||||
postBody: dataToSubmit,
|
postBody: dataToSubmit,
|
||||||
|
@ -270,7 +269,7 @@ export default function TaskShow() {
|
||||||
return (
|
return (
|
||||||
<div className="markdown">
|
<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.
|
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">
|
<div data-color-mode="light">
|
||||||
|
|
Loading…
Reference in New Issue