fix: check if grid_rows exists
This commit is contained in:
parent
6dd6d4c3e1
commit
b75a1629fa
1 changed files with 4 additions and 0 deletions
|
|
@ -910,6 +910,10 @@ export default class Grid {
|
|||
|
||||
update_docfield_property(fieldname, property, value) {
|
||||
// update the docfield of each row
|
||||
if (!this.grid_rows) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (let row of this.grid_rows) {
|
||||
let docfield = row.docfields.find(d => d.fieldname === fieldname);
|
||||
if (docfield) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue