From efc867815a9d53dd063a19569c5d1238434969ed Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Thu, 15 Apr 2021 01:12:10 +0200 Subject: [PATCH] Pass the svelte check for graphs --- ts/graphs/CardCounts.svelte | 2 +- ts/graphs/WithGraphData.svelte | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ts/graphs/CardCounts.svelte b/ts/graphs/CardCounts.svelte index 1dd8bf60d..7f4a7b15f 100644 --- a/ts/graphs/CardCounts.svelte +++ b/ts/graphs/CardCounts.svelte @@ -17,7 +17,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html export let sourceData: pb.BackendProto.GraphsOut; import * as tr2 from "anki/i18n"; - export let preferences: PreferenceStore; + export let preferences: PreferenceStore; let { cardCountsSeparateInactive, browserLinksSupported } = preferences; const dispatch = createEventDispatcher(); diff --git a/ts/graphs/WithGraphData.svelte b/ts/graphs/WithGraphData.svelte index 82e209fe6..4ab436a22 100644 --- a/ts/graphs/WithGraphData.svelte +++ b/ts/graphs/WithGraphData.svelte @@ -38,7 +38,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html ): Promise { await postRequest( "/_anki/setGraphPreferences", - pb.BackendProto.GraphPreferences.encode(prefs).finish() + new TextDecoder().decode( + pb.BackendProto.GraphPreferences.encode(prefs).finish() + ) ); }