fix: complete InvesteMoz validation and error corrections

This commit is contained in:
2026-10-29 21:47:33 +02:00
parent 63147312e2
commit daf8623441
718 changed files with 127308 additions and 20959 deletions
+4 -6
View File
@@ -79,12 +79,10 @@ export default function ArticleEditor({
body: JSON.stringify(form.data),
},
);
const data = await response
.json()
.catch(() => ({
message:
'Não foi possível abrir a prévia. Recupere o editor e confirme a sessão e o MFA existentes.',
}));
const data = await response.json().catch(() => ({
message:
'Não foi possível abrir a prévia. Recupere o editor e confirme a sessão e o MFA existentes.',
}));
if (!response.ok)
throw new Error(
Object.values(data.errors ?? {})