From 9bbdc616c49618b593a2f5a11f88557edfaad880 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Mon, 22 Mar 2021 04:03:52 +0100 Subject: [PATCH] Remove assignment to preferencesPromise: getPreferences will only be called once --- ts/graphs/WithGraphData.svelte | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ts/graphs/WithGraphData.svelte b/ts/graphs/WithGraphData.svelte index 8ce026e1d..143c85045 100644 --- a/ts/graphs/WithGraphData.svelte +++ b/ts/graphs/WithGraphData.svelte @@ -14,9 +14,8 @@ value: graphValue, } = useAsyncReactive(() => getGraphData($search, $days), [search, days]); - const preferencesPromise = getPreferences(); const { loading: prefsLoading, error: prefsError, value: prefsValue } = useAsync( - () => preferencesPromise + () => getPreferences() ); $: revlogRange = daysToRevlogRange($days);