mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
only show warning if there is a row
This commit is contained in:
@@ -80,8 +80,10 @@ export abstract class BaseImporter {
|
||||
});
|
||||
if (result.errors != null && result.errors.length > 0) {
|
||||
result.errors.forEach((e) => {
|
||||
// tslint:disable-next-line
|
||||
console.warn('Error parsing row ' + e.row + ': ' + e.message);
|
||||
if (e.row != null) {
|
||||
// tslint:disable-next-line
|
||||
console.warn('Error parsing row ' + e.row + ': ' + e.message);
|
||||
}
|
||||
});
|
||||
}
|
||||
return result.data && result.data.length > 0 ? result.data : null;
|
||||
|
||||
Reference in New Issue
Block a user