Removed duplicate, fixed crash

This commit is contained in:
2023-09-12 11:06:25 +02:00
parent 61249a6985
commit 9e51bb6ac0

View File

@@ -71,6 +71,8 @@ async function getUntisServer(school) {
],
"jsonrpc": "2.0"
})
}).catch(error => {
console.error(error);
});
const searchSchoolJson = await searchSchool.json();
@@ -151,11 +153,6 @@ async function getUntis(weekDate) {
subjectsWithoutTeachingContent.splice(subjectsWithoutTeachingContent.indexOf(entry.subject.displayName), 1);
}
}
if (!teachingContent.includes(entry.teachingContent) && entry.teachingContent != null) {
if (teachingContent != "") teachingContent += '\n';
teachingContent += "- " + entry.teachingContent;
}
}
});