diff --git a/src/routes/(app)/manga/[MangaID]/(manga)/chaptersSide.svelte b/src/routes/(app)/manga/[MangaID]/(manga)/chaptersSide.svelte index b34f0f9..3461e11 100644 --- a/src/routes/(app)/manga/[MangaID]/(manga)/chaptersSide.svelte +++ b/src/routes/(app)/manga/[MangaID]/(manga)/chaptersSide.svelte @@ -235,9 +235,9 @@ }); } - $: chapterNumbers = sortedChapters?.map((e) => e.chapterNumber); + $: chapterNumbers = sortedChapters?.map((e) => e.chapterNumber) ?? []; $: checkArray = Array.from( - Array(Math.floor(chapterNumbers?.reduce((a, c) => Math.max(a, c)) ?? 0)), + Array(Math.floor(chapterNumbers.reduce((a, c) => Math.max(a, c), 0))), (_, index) => index + 1 ); $: missingChapters = checkArray?.filter( diff --git a/versionToServerVersionMapping.json b/versionToServerVersionMapping.json index 65bf7f9..307ef73 100644 --- a/versionToServerVersionMapping.json +++ b/versionToServerVersionMapping.json @@ -5,7 +5,7 @@ }, { "tag": "v1.1.0", - "uiVersion": "r1098", + "uiVersion": "r1101", "serverVersion": "r1502", "comment": "the server version is between 1.0.0 and 1.1.0 release", "comment2": "because its the preview version that implemented the breaking changes"