Commit ·
56dda8d
1
Parent(s): 2f95f36
Fix: stuck in empty display when all summaries are annotated
Browse files- index.html +4 -2
index.html
CHANGED
|
@@ -411,6 +411,7 @@ let allRows = [];
|
|
| 411 |
let filteredRows = [];
|
| 412 |
let currentIdx = 0;
|
| 413 |
let dirty = false;
|
|
|
|
| 414 |
|
| 415 |
/* ---------- Auth ---------- */
|
| 416 |
|
|
@@ -518,8 +519,9 @@ function render() {
|
|
| 518 |
document.getElementById("counter").textContent = "0 / 0";
|
| 519 |
return;
|
| 520 |
}
|
| 521 |
-
|
| 522 |
-
|
|
|
|
| 523 |
|
| 524 |
const row = filteredRows[currentIdx];
|
| 525 |
document.getElementById("counter").textContent = (currentIdx + 1) + " / " + filteredRows.length;
|
|
|
|
| 411 |
let filteredRows = [];
|
| 412 |
let currentIdx = 0;
|
| 413 |
let dirty = false;
|
| 414 |
+
const initialCardMarkup = document.getElementById("card").innerHTML;
|
| 415 |
|
| 416 |
/* ---------- Auth ---------- */
|
| 417 |
|
|
|
|
| 519 |
document.getElementById("counter").textContent = "0 / 0";
|
| 520 |
return;
|
| 521 |
}
|
| 522 |
+
if (!document.getElementById("title")) {
|
| 523 |
+
card.innerHTML = initialCardMarkup;
|
| 524 |
+
}
|
| 525 |
|
| 526 |
const row = filteredRows[currentIdx];
|
| 527 |
document.getElementById("counter").textContent = (currentIdx + 1) + " / " + filteredRows.length;
|