diff --git a/src/photo/form/PhotoForm.tsx b/src/photo/form/PhotoForm.tsx index 5e1750c1..5d836b43 100644 --- a/src/photo/form/PhotoForm.tsx +++ b/src/photo/form/PhotoForm.tsx @@ -282,7 +282,11 @@ export default function PhotoForm({ ? createPhotoAction : updatePhotoAction )(data) - .catch(e => setFormActionErrorMessage(e.message))} + .catch(e => { + if (e.message !== 'NEXT_REDIRECT') { + setFormActionErrorMessage(e.message); + } + })} onSubmit={() => { setFormActionErrorMessage(''); (document.activeElement as HTMLElement)?.blur?.();