Skip to content

Commit 250bf46

Browse files
null row header fix
1 parent 416a3b1 commit 250bf46

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/js/PivotView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,10 +430,10 @@ PivotView.prototype.recalculateSizes = function (container) {
430430
tableBlock = container.getElementsByClassName("lpt-tableBlock")[0],
431431
tableTr = tableBlock.getElementsByTagName("tr")[0];
432432

433-
if (tTableHead.childNodes[0].lastChild["_extraCell"]) {
433+
if (tTableHead.childNodes[0] && tTableHead.childNodes[0].lastChild["_extraCell"]) {
434434
tTableHead.childNodes[0].removeChild(tTableHead.childNodes[0].lastChild);
435435
}
436-
if (lTableHead.lastChild["_extraTr"]) {
436+
if (lTableHead.lastChild && lTableHead.lastChild["_extraTr"]) {
437437
lTableHead.removeChild(lTableHead.lastChild);
438438
}
439439

0 commit comments

Comments
 (0)