Skip to content

Commit

Permalink
Merge pull request #26097 from frappe/mergify/bp/version-15-hotfix/pr…
Browse files Browse the repository at this point in the history
…-26095

fix(grid): ensure that `doc` itself is not null (backport #26095)
  • Loading branch information
akhilnarang committed Apr 22, 2024
2 parents 5255843 + b4c9d40 commit e525e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/public/js/frappe/form/grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ export default class Grid {
}

set_value(fieldname, value, doc) {
if (this.display_status !== "None" && doc.name && this.grid_rows_by_docname[doc.name]) {
if (this.display_status !== "None" && doc?.name && this.grid_rows_by_docname[doc.name]) {
this.grid_rows_by_docname[doc.name].refresh_field(fieldname, value);
}
}
Expand Down

0 comments on commit e525e15

Please sign in to comment.