fix(hide-columns): account for undefined element in isTableHider
This commit is contained in:
parent
ef52f02d78
commit
ee5a0052a1
@ -376,7 +376,9 @@ function isEmptyElement(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_PILL_CLASS);
|
||||
|| element.classList.contains(TABLE_PILL_CLASS)
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user