Commit 171f8c24 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixed null error

parent 8caf4515
......@@ -158,7 +158,7 @@ function loadMoreResults() {
document.querySelectorAll(".no-results-error").forEach(element => {
element.remove();
});
if (document.querySelector(".alert.alert-danger > ul").children().length == 0) {
if (document.querySelector(".alert.alert-danger > ul") != null && document.querySelector(".alert.alert-danger > ul").children().length == 0) {
document.querySelectorAll(".alert.alert-danger").forEach(element => {
element.remove();
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment