Merge pull request #1195 from JasonKhew96/fix-null

fix: null check
This commit is contained in:
Stratuma 2026-02-08 20:44:23 +01:00 committed by GitHub
commit 056dff7e57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1675,7 +1675,7 @@ export default class Crunchy implements ServiceClass {
//Make a format more usable for the crunchy chapters
for (const chapter in chapterData) {
if (typeof chapterData[chapter] == 'object') {
if (chapterData[chapter] && typeof chapterData[chapter] == 'object') {
chapters.push(chapterData[chapter]);
}
}
@ -3570,3 +3570,4 @@ export default class Crunchy implements ServiceClass {
return episodeList;
}
}