diff --git a/src/components/BulkEditList/BulkEditListResult/Preview/Preview.js b/src/components/BulkEditList/BulkEditListResult/Preview/Preview.js index 14bcf6a9..2907f282 100644 --- a/src/components/BulkEditList/BulkEditListResult/Preview/Preview.js +++ b/src/components/BulkEditList/BulkEditListResult/Preview/Preview.js @@ -34,8 +34,8 @@ export const Preview = ({ id, title }) => { }); useEffect(() => { - if (errors?.length && data?.progress) { - setProcessedRecords(data.progress.total - errors.length); + if (data?.progress) { + setProcessedRecords(data.progress.total - (errors?.length || 0)); } }, [errors, data?.progress]);