Remove assignment to preferencesPromise: getPreferences will only be called once

This commit is contained in:
Henrik Giesel 2021-03-22 04:03:52 +01:00
parent 10b8a1c3cb
commit 9bbdc616c4

View File

@ -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);