Skip to content

Commit d3a699f

Browse files
Fix filters in the doc
1 parent 044c2be commit d3a699f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/javascripts/rank-table.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ document$.subscribe(() => {
103103
const colorClasses = ['winner-gold', 'winner-silver', 'winner-bronze'];
104104
let currentId = 0;
105105
let topId = 0;
106-
while (topId < 3) {
106+
top_rows_length = prepRows.length < 3 ? prepRows.length : 3
107+
while (topId < top_rows_length) {
107108
$(dt.row(prepRows[currentId]).node()).addClass(colorClasses[topId]);
108109
if (getRank(prepRows[currentId]) != getRank(prepRows[currentId+1])) {
109110
topId += 1;

0 commit comments

Comments
 (0)