We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 416a3b1 commit 250bf46Copy full SHA for 250bf46
1 file changed
source/js/PivotView.js
@@ -430,10 +430,10 @@ PivotView.prototype.recalculateSizes = function (container) {
430
tableBlock = container.getElementsByClassName("lpt-tableBlock")[0],
431
tableTr = tableBlock.getElementsByTagName("tr")[0];
432
433
- if (tTableHead.childNodes[0].lastChild["_extraCell"]) {
+ if (tTableHead.childNodes[0] && tTableHead.childNodes[0].lastChild["_extraCell"]) {
434
tTableHead.childNodes[0].removeChild(tTableHead.childNodes[0].lastChild);
435
}
436
- if (lTableHead.lastChild["_extraTr"]) {
+ if (lTableHead.lastChild && lTableHead.lastChild["_extraTr"]) {
437
lTableHead.removeChild(lTableHead.lastChild);
438
439
0 commit comments