diff --git a/src/main/resources/static/js/pages/home.js b/src/main/resources/static/js/pages/home.js index f7e5471df..7872374eb 100644 --- a/src/main/resources/static/js/pages/home.js +++ b/src/main/resources/static/js/pages/home.js @@ -112,6 +112,7 @@ function setAsDefault(value) { function adjustVisibleElements() { const container = document.querySelector('.recent-features'); + if(!container) return; const subElements = Array.from(container.children); let totalWidth = 0;