Merge pull request #19207 from rohitwaghchaure/fixed-child-tables-not-working

fix: child table not working
This commit is contained in:
rohitwaghchaure 2022-12-08 20:18:16 +05:30 committed by GitHub
commit 2a5d076798
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -656,7 +656,7 @@ export default class GridRow {
this.grid.visible_columns.forEach((col, ci) => {
// to get update df for the row
let df = fields.find((field) => field.fieldname === col[0].fieldname);
let df = fields.find((field) => field?.fieldname === col[0].fieldname);
this.set_dependant_property(df);
@ -1360,7 +1360,7 @@ export default class GridRow {
: this.docfields;
let df = fields.find((col) => {
return col.fieldname === fieldname;
return col?.fieldname === fieldname;
});
// format values if no frm