Added guard if no recent updated features section

This commit is contained in:
Connor Yoh 2025-04-14 14:28:22 +01:00
parent 1c22165eff
commit b65a47ee97

View File

@ -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;