mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
Try to avoid some errors loading nm by checking before setting
This commit is contained in:
parent
821c8474c5
commit
5b115ec7d5
@ -486,7 +486,7 @@ var et2_nextmatch_rowWidget = /** @class */ (function (_super) {
|
||||
this._widgets[i] = _widgets[i].clone(this);
|
||||
this._widgets[i].loadingFinished();
|
||||
// Set column alignment from widget
|
||||
if (this._widgets[i].align) {
|
||||
if (this._widgets[i].align && this._row.childNodes[row_id]) {
|
||||
this._row.childNodes[row_id].align = this._widgets[i].align;
|
||||
}
|
||||
row_id++;
|
||||
@ -504,7 +504,7 @@ var et2_nextmatch_rowWidget = /** @class */ (function (_super) {
|
||||
// Disabled columns might be missing widget - skip it
|
||||
if (!this._widgets[i])
|
||||
continue;
|
||||
if (this._widgets[i] == _sender) {
|
||||
if (this._widgets[i] == _sender && this._row.childNodes[row_id]) {
|
||||
return this._row.childNodes[row_id].childNodes[0]; // Return the i-th td tag
|
||||
}
|
||||
row_id++;
|
||||
|
@ -625,7 +625,7 @@ class et2_nextmatch_rowWidget extends et2_widget implements et2_IDOMNode
|
||||
this._widgets[i] = _widgets[i].clone(this);
|
||||
this._widgets[i].loadingFinished();
|
||||
// Set column alignment from widget
|
||||
if(this._widgets[i].align)
|
||||
if(this._widgets[i].align && this._row.childNodes[row_id])
|
||||
{
|
||||
this._row.childNodes[row_id].align = this._widgets[i].align;
|
||||
}
|
||||
@ -646,7 +646,7 @@ class et2_nextmatch_rowWidget extends et2_widget implements et2_IDOMNode
|
||||
{
|
||||
// Disabled columns might be missing widget - skip it
|
||||
if(!this._widgets[i]) continue;
|
||||
if(this._widgets[i] == _sender)
|
||||
if(this._widgets[i] == _sender && this._row.childNodes[row_id])
|
||||
{
|
||||
return this._row.childNodes[row_id].childNodes[0]; // Return the i-th td tag
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user