Skip to content

Commit

Permalink
fix: child table not working
Browse files Browse the repository at this point in the history
(cherry picked from commit 95802f4)
  • Loading branch information
rohitwaghchaure authored and mergify[bot] committed Dec 8, 2022
1 parent 6db0b8a commit e1b231a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frappe/public/js/frappe/form/grid_row.js
Expand Up @@ -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);

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e1b231a

Please sign in to comment.