fix(hide-columns): account for undefined element in isTableHider

This commit is contained in:
Sarah Vaupel 2020-08-12 17:21:13 +02:00
parent ef52f02d78
commit ee5a0052a1

View File

@ -376,7 +376,9 @@ function isEmptyElement(element) {
} }
function isTableHider(element) { function isTableHider(element) {
return element.classList.contains(TABLE_HIDER_CLASS) return element && element.classList && (
element.classList.contains(TABLE_HIDER_CLASS)
|| element.classList.contains(TABLE_HIDER_VISIBLE_CLASS) || element.classList.contains(TABLE_HIDER_VISIBLE_CLASS)
|| element.classList.contains(TABLE_PILL_CLASS); || element.classList.contains(TABLE_PILL_CLASS)
);
} }