From d9b59be781661d6664f154c0de6ae0c2b2a56287 Mon Sep 17 00:00:00 2001 From: SethBurkart123 Date: Thu, 8 Feb 2024 06:32:03 +1100 Subject: [PATCH] fix: home items duplicate when homepage loaded repeatedly --- src/SEQTA.ts | 2 ++ 1 file changed, 2 insertions(+) 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