From b65a47ee97fdc6a04a3c352e1a3736304ea2bebb Mon Sep 17 00:00:00 2001 From: Connor Yoh Date: Mon, 14 Apr 2025 14:28:22 +0100 Subject: [PATCH] Added guard if no recent updated features section --- src/main/resources/static/js/pages/home.js | 1 + 1 file changed, 1 insertion(+) 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;