fix(hide-columns): fix crash if no row is present

This commit is contained in:
Sarah Vaupel 2019-12-02 18:27:14 +01:00 committed by Gregor Kleen
parent 047c0a5787
commit 827cecda8f

View File

@ -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];