mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
fix: assessments not loading after notices error #150
This commit is contained in:
+5
-2
@@ -2195,7 +2195,7 @@ export async function loadHomePage() {
|
||||
|
||||
var Notices = stringToHTML(NoticesStr)
|
||||
// Appends the shortcut container into the home container
|
||||
document.getElementById('home-container')!.append(Notices.firstChild!)
|
||||
document.getElementById('home-container')!.append(Notices.firstChild!) // HERE!!!
|
||||
|
||||
if (settingsState.animations) {
|
||||
animate(
|
||||
@@ -2219,8 +2219,10 @@ export async function loadHomePage() {
|
||||
|
||||
const response = await GetPrefs.json()
|
||||
|
||||
const labelArray = response.payload.filter((item: any) => item.name === 'notices.filters').map((item: any) => item.value)[0].split(' ')
|
||||
const labelArray = response.payload.filter((item: any) => item.name === 'notices.filters').map((item: any) => item.value)
|
||||
|
||||
if (labelArray.length !== 0) {
|
||||
const labelArray = response.payload.filter((item: any) => item.name === 'notices.filters').map((item: any) => item.value)[0].split(' ')
|
||||
const xhr2 = new XMLHttpRequest()
|
||||
xhr2.open(
|
||||
'POST',
|
||||
@@ -2251,6 +2253,7 @@ export async function loadHomePage() {
|
||||
}
|
||||
|
||||
dateControl.addEventListener('input', onInputChange);
|
||||
}
|
||||
|
||||
if (settingsState.notificationcollector) {
|
||||
enableNotificationCollector()
|
||||
|
||||
Reference in New Issue
Block a user