fix(hide-columns): fix crash if no row is present
This commit is contained in:
parent
047c0a5787
commit
827cecda8f
@ -226,7 +226,7 @@ export class HideColumns {
|
||||
isEmptyColumn(columnIndex) {
|
||||
for (let row of this._element.getElementsByTagName('TR')) {
|
||||
if (row.children.length <= columnIndex) {
|
||||
throw new Error('Invalid column index for table');
|
||||
return;
|
||||
}
|
||||
|
||||
const cell = row.children[columnIndex];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user