From b10515fe432e14a52a0006aebdaaa6ed43f5d968 Mon Sep 17 00:00:00 2001 From: andersonid Date: Thu, 2 Oct 2025 08:18:54 -0300 Subject: [PATCH] Fix JavaScript error in showSection function --- app/static/index.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/static/index.html b/app/static/index.html index f32e132..8da20da 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -1124,8 +1124,14 @@ }); // Show selected section - document.getElementById(section + 'Section').style.display = 'block'; - document.querySelector(`[data-section="${section}"]`).classList.add('active'); + const sectionElement = document.getElementById(section + 'Section'); + if (sectionElement) { + sectionElement.style.display = 'block'; + } + const navElement = document.querySelector(`[data-section="${section}"]`); + if (navElement) { + navElement.classList.add('active'); + } // Load section data switch(section) {