all repos — searchix @ e0d86bec7c9e8bedd1e71173b486668e16ec7c2e

Search engine for NixOS, nix-darwin, home-manager and NUR users

fix: duplicated results tables via JS search
Alan Pearce alan@alanpearce.eu
Fri, 21 Jun 2024 17:02:46 +0200
commit

e0d86bec7c9e8bedd1e71173b486668e16ec7c2e

parent

dbeddced4046cb5756af2604f5cb6734b3e7cee6

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M frontend/static/search.jsfrontend/static/search.js
@@ -7,7 +7,7 @@ let pagination = document.getElementById("pagination"); 
 const resultsRange = new Range();
 resultsRange.setStart(results, 0);
-resultsRange.setEnd(results, 0);
+resultsRange.setEnd(results, results.childNodes.length);
 
 const detailsRange = new Range();
 detailsRange.setStartAfter(dialog.firstElementChild);