fix(home): notices date picker not working

This commit is contained in:
SethBurkart123
2024-12-02 11:11:03 +11:00
parent 71cf9dbca8
commit 1692bd3e92
+5 -1
View File
@@ -2358,7 +2358,11 @@ export async function loadHomePage() {
if (labelArray.length > 0) { if (labelArray.length > 0) {
const noticeContainer = document.getElementById('notice-container') const noticeContainer = document.getElementById('notice-container')
if (noticeContainer) { 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') noticeContainer.classList.remove('loading')
} }
} }