From 4305d1c0517e771c045bfb9ebfd1a3147311ed4d Mon Sep 17 00:00:00 2001 From: Robonau <30987265+Robonau@users.noreply.github> Date: Fri, 2 Aug 2024 02:30:36 +0100 Subject: [PATCH 1/2] versionToServerVersionMapping --- versionToServerVersionMapping.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versionToServerVersionMapping.json b/versionToServerVersionMapping.json index 178f298..65bf7f9 100644 --- a/versionToServerVersionMapping.json +++ b/versionToServerVersionMapping.json @@ -5,7 +5,7 @@ }, { "tag": "v1.1.0", - "uiVersion": "r1095", + "uiVersion": "r1098", "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" From a44114093bba3271d5f854e8ea2ea0313945a7bc Mon Sep 17 00:00:00 2001 From: Robonau <30987265+Robonau@users.noreply.github> Date: Fri, 2 Aug 2024 05:29:22 +0100 Subject: [PATCH 2/2] add a math.floor to the checkArray creation --- src/routes/(app)/manga/[MangaID]/(manga)/chaptersSide.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/(app)/manga/[MangaID]/(manga)/chaptersSide.svelte b/src/routes/(app)/manga/[MangaID]/(manga)/chaptersSide.svelte index 0f81a28..b34f0f9 100644 --- a/src/routes/(app)/manga/[MangaID]/(manga)/chaptersSide.svelte +++ b/src/routes/(app)/manga/[MangaID]/(manga)/chaptersSide.svelte @@ -237,7 +237,7 @@ $: chapterNumbers = sortedChapters?.map((e) => e.chapterNumber); $: checkArray = Array.from( - Array(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(