diff --git a/jstrr.js b/jstrr.js index 582e50e..782b14e 100644 --- a/jstrr.js +++ b/jstrr.js @@ -413,10 +413,12 @@ tr.appendChild(td); if (j == teamcol) { // Add inTeam ranking hook let tm = list[i][j]; - tr.classList.add(tm); - td.addEventListener("click", filterSameTeam); - if (!rankinteam[tm]) rankinteam[tm] = 0; - td.title = (++rankinteam[tm]) + " in "+tm; + if (tm > "") { + tr.classList.add(tm); + td.addEventListener("click", filterSameTeam); + if (!rankinteam[tm]) rankinteam[tm] = 0; + td.title = (++rankinteam[tm]) + " in "+tm; + } } } tbl.appendChild(tr);