Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
2abb8f69ee
commit
7e855e4657
@@ -681,7 +681,7 @@ function ImportPage() {
|
||||
|
||||
if (cfg.postInsert) cfg.postInsert(inserted_rows, ctx);
|
||||
|
||||
const summary = { total: rawRows.length, inserted, skipped, errors };
|
||||
const summary = { total: rawRows.length, inserted, skipped, errors, skipReasons };
|
||||
setResults((r) => ({ ...r, [cfg.key]: summary }));
|
||||
if (errors.length === 0) toast.success(`${cfg.label}: ${inserted} imported`);
|
||||
else toast.error(`${cfg.label}: ${errors.length} batch error(s)`);
|
||||
|
||||
Reference in New Issue
Block a user