fix: check if grid_rows exists

This commit is contained in:
prssanna 2021-05-13 13:58:26 +05:30
parent 6dd6d4c3e1
commit b75a1629fa

View file

@ -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) {