Retry the fix

This commit is contained in:
jude
2025-03-20 16:56:10 +00:00
parent c0583f2d43
commit 265e48f84b
2 changed files with 39 additions and 31 deletions

View File

@ -32,6 +32,12 @@ export const EditButtonRow = () => {
setRecentlySaved(false);
flash({ message: response.data.error, type: "error" });
} else if (response.data.errors && response.data.errors.length > 0) {
setRecentlySaved(false);
for (const error of response.data.errors) {
flash({ message: error, type: "error" });
}
} else {
setRecentlySaved(true);