feat(ImportFlowDialog): improve error management

This commit is contained in:
Ali BARIN
2025-01-20 14:41:05 +00:00
parent 9cbbf05232
commit 1fa56d2af7
2 changed files with 11 additions and 2 deletions

View File

@@ -27,3 +27,9 @@ export const getFieldErrorMessage = ({ fieldName, error }) => {
return '';
};
export const getUnifiedErrorMessage = (errors) => {
return Object.values(errors)
.flatMap((error) => error)
.join('\n\r');
};