mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
Remove assignment to preferencesPromise: getPreferences will only be called once
This commit is contained in:
parent
10b8a1c3cb
commit
9bbdc616c4
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue