From db87c833c658cb9a31093c137a428bc54182d3f8 Mon Sep 17 00:00:00 2001 From: Robonau <30987265+Robonau@users.noreply.github> Date: Tue, 10 Dec 2024 08:11:45 +0000 Subject: [PATCH] fix double sending query --- src/routes/(app)/(library)/+page.svelte | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/routes/(app)/(library)/+page.svelte b/src/routes/(app)/(library)/+page.svelte index 1a48eb2..072b401 100644 --- a/src/routes/(app)/(library)/+page.svelte +++ b/src/routes/(app)/(library)/+page.svelte @@ -244,12 +244,9 @@ } if (!reloadManga) return; reloadManga = false; - queryState({ - client, - query: getCategory, - variables: { id: $tab ?? 0 }, - requestPolicy: 'network-only' - }); + client + .query(getCategory, { id: $tab ?? 0 }, { requestPolicy: 'network-only' }) + .toPromise(); } onMount(() => {