From 827cecda8f4244861f05ec988c00929591c94bec Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Mon, 2 Dec 2019 18:27:14 +0100 Subject: [PATCH] fix(hide-columns): fix crash if no row is present --- frontend/src/utils/hide-columns/hide-columns.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/utils/hide-columns/hide-columns.js b/frontend/src/utils/hide-columns/hide-columns.js index c8599e17e..766277170 100644 --- a/frontend/src/utils/hide-columns/hide-columns.js +++ b/frontend/src/utils/hide-columns/hide-columns.js @@ -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];