diff --git a/themes/bootstrap3/templates/combined/results-list.phtml b/themes/bootstrap3/templates/combined/results-list.phtml index e07f56e5525..dcaeaccae73 100644 --- a/themes/bootstrap3/templates/combined/results-list.phtml +++ b/themes/bootstrap3/templates/combined/results-list.phtml @@ -54,7 +54,8 @@ template.innerHTML = "(" + count + ")"; const span = template.content.children[0]; - const link = document.querySelector('.combined-jump-links .$classId'); + const combinedJumpLinks = document.querySelector('.combined-jump-links'); + const link = combinedJumpLinks?.querySelector('.$classId'); if (link) { link.append(span); link.style.display = "inline";