Skip to content

Commit 70cc29b

Browse files
committed
fix(js): hide the noDisplay option if a result is then found per code review
Signed-off-by: Laura Santamaria <[email protected]>
1 parent 81e92fb commit 70cc29b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

templates/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,12 @@ <h3 class="group-heading">{{ elem.heading }}</h3>
283283
noDisplay = document.getElementById("no-results");
284284
noDisplay.style.display = "";
285285
}
286+
287+
if (resultCount != 0) {
288+
let noDisplay;
289+
noDisplay = document.getElementById("no-results");
290+
noDisplay.style.display = "none";
291+
}
286292
}
287293
function filterTable() {
288294
let input, filter, table, tr, td, i, txtValue;

0 commit comments

Comments
 (0)