Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Show validation error message on facility cover image upload (#8625) #8639

Merged
3 changes: 2 additions & 1 deletion src/Components/Facility/CoverImageEditModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ const CoverImageEditModal = ({
onSave?.();
closeModal();
} else {
const error = JSON.parse(xhr.responseText);
Notification.Error({
msg: "Something went wrong!",
msg: error?.cover_image?.join(" ") || "Something went wrong!",
});
setIsProcessing(false);
}
Expand Down
Loading