diff --git a/src/SEQTA.ts b/src/SEQTA.ts index 28cd67bf..be254543 100644 --- a/src/SEQTA.ts +++ b/src/SEQTA.ts @@ -2244,6 +2244,8 @@ async function loadHomePage() { // Remove all current elements in the main div to add new elements const main = document.getElementById('main') + main!.innerHTML = '' + if (!main) { console.error('Main element not found.') return