fix(grid): ensure that doc itself is not null
Follow up to #25800 Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
03de739107
commit
0838eec211
1 changed files with 1 additions and 1 deletions
|
|
@ -795,7 +795,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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue