Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
5e519c5dd4
commit
7435fc4c1a
@@ -608,11 +608,6 @@ function ImportPage() {
|
||||
unknownHeaders.push(h);
|
||||
}
|
||||
}
|
||||
if (unknownHeaders.length > 0) {
|
||||
console.info(`[import:${cfg.key}] skipped unknown columns:`, unknownHeaders);
|
||||
errors.push(`Unrecognized columns ignored: ${unknownHeaders.join(", ")}`);
|
||||
}
|
||||
|
||||
const mapped: Row[] = [];
|
||||
let skipped = 0;
|
||||
const errors: string[] = [];
|
||||
@@ -621,6 +616,10 @@ function ImportPage() {
|
||||
skipped++;
|
||||
skipReasons[reason] = (skipReasons[reason] ?? 0) + 1;
|
||||
};
|
||||
if (unknownHeaders.length > 0) {
|
||||
console.info(`[import:${cfg.key}] skipped unknown columns:`, unknownHeaders);
|
||||
errors.push(`Unrecognized columns ignored: ${unknownHeaders.join(", ")}`);
|
||||
}
|
||||
|
||||
for (const raw of rawRows) {
|
||||
const row: Row = {};
|
||||
|
||||
Reference in New Issue
Block a user