From 490cc40f517c13ffb1c2986a8d9b8032c2703ffc Mon Sep 17 00:00:00 2001 From: Robonau <30987265+Robonau@users.noreply.github> Date: Wed, 28 Aug 2024 00:35:14 +0100 Subject: [PATCH] fix migration using unSub before initialization --- src/routes/(app)/browse/migrate/manga/[MangaID]/+page.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routes/(app)/browse/migrate/manga/[MangaID]/+page.svelte b/src/routes/(app)/browse/migrate/manga/[MangaID]/+page.svelte index 122c5c8..a9919db 100644 --- a/src/routes/(app)/browse/migrate/manga/[MangaID]/+page.svelte +++ b/src/routes/(app)/browse/migrate/manga/[MangaID]/+page.svelte @@ -32,7 +32,9 @@ function onSub(mangaNow: typeof $manga) { if (mangaNow?.data?.manga?.title) { $query = mangaNow?.data?.manga?.title; - unSub(); + setTimeout(() => { + unSub(); + }, 1); } }