Merge pull request #13212 from prssanna/grid-fix

fix: check if grid_rows exists
This commit is contained in:
mergify[bot] 2021-05-14 06:39:35 +00:00 committed by GitHub
commit d84d02349c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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