mirror of
https://github.com/frappe/books.git
synced 2026-08-24 10:04:45 -05:00
fix: failing importer tests due to undefined read
This commit is contained in:
+1
-1
@@ -232,7 +232,7 @@ export class Importer {
|
||||
const doc = this.fyo.doc.getNewDoc(this.schemaName, data, false);
|
||||
for (const schemaName in targetFieldnameMap) {
|
||||
const fieldname = targetFieldnameMap[schemaName];
|
||||
const childTable = childTableMap[name][schemaName];
|
||||
const childTable = childTableMap[name]?.[schemaName];
|
||||
if (!childTable) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -64,4 +64,4 @@ test('import SalesInvoices', async (t) => {
|
||||
);
|
||||
});
|
||||
|
||||
closeTestFyo(fyo, __filename);
|
||||
closeTestFyo(fyo, __filename);
|
||||
Reference in New Issue
Block a user