Auto clear RespID

This commit is contained in:
pepper 2021-01-18 01:47:36 -05:00
parent 7145157622
commit d4b80352d0
2 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,7 @@ export const CPanelBooking = () => {
}) })
.catch(function (error) { .catch(function (error) {
setError(buildErrorStringFromArray(error.response.data)) setError(buildErrorStringFromArray(error.response.data))
setRespID(0)
}); });
setSubmitting(false); setSubmitting(false);
resetForm({ values: "" }); resetForm({ values: "" });

View File

@ -42,6 +42,7 @@ const ReportSingleMigration = ({ item }) => {
}) })
.catch(function (error) { .catch(function (error) {
setError(buildErrorStringFromArray(error.response.data)); setError(buildErrorStringFromArray(error.response.data));
setRespID(0)
}); });
setSubmitting(false); setSubmitting(false);
}; };