Fix bug in nm rowProvider preventing some re-ordered columns from getting their value

This commit is contained in:
nathangray 2020-03-17 10:24:24 -06:00
parent 5fecbf3051
commit 83fd11f7c7
2 changed files with 22 additions and 22 deletions

View File

@ -247,10 +247,10 @@ var et2_nextmatch_rowProvider = /** @class */ (function () {
} }
}; };
// Check each column // Check each column
var columns = _widget.getChildren(); var columns = _widget._widgets;
for (var i = 0; i < columns.length; i++) { for (var i = 0; i < columns.length; i++) {
// If column is hidden, don't process it // If column is hidden, don't process it
if (this._context && this._context.columns && this._context.columns[i] && !this._context.columns[i].visible) { if (typeof columns[i] === 'undefined' || this._context && this._context.columns && this._context.columns[i] && !this._context.columns[i].visible) {
continue; continue;
} }
columns[i].iterateOver(process, this); columns[i].iterateOver(process, this);

View File

@ -297,11 +297,11 @@ export class et2_nextmatch_rowProvider
}; };
// Check each column // Check each column
const columns = _widget.getChildren(); const columns = _widget._widgets;
for (var i = 0; i < columns.length; i++) for (var i = 0; i < columns.length; i++)
{ {
// If column is hidden, don't process it // If column is hidden, don't process it
if(this._context && this._context.columns && this._context.columns[i] && !this._context.columns[i].visible) if(typeof columns[i] === 'undefined' || this._context && this._context.columns && this._context.columns[i] && !this._context.columns[i].visible)
{ {
continue; continue;
} }