From 1692bd3e9216365441f1b72aa5b3a4601e6c4708 Mon Sep 17 00:00:00 2001 From: SethBurkart123 Date: Mon, 2 Dec 2024 11:11:03 +1100 Subject: [PATCH] fix(home): notices date picker not working --- src/SEQTA.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/SEQTA.ts b/src/SEQTA.ts index 48533330..be7524dc 100644 --- a/src/SEQTA.ts +++ b/src/SEQTA.ts @@ -2358,7 +2358,11 @@ export async function loadHomePage() { if (labelArray.length > 0) { const noticeContainer = document.getElementById('notice-container') if (noticeContainer) { - processNotices(notices, labelArray[0].split(' ')) + const dateControl = document.querySelector('input[type="date"]') as HTMLInputElement + if (dateControl) { + dateControl.value = TodayFormatted + setupNotices(labelArray[0].split(' '), TodayFormatted) + } noticeContainer.classList.remove('loading') } }