mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -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,
|
value: graphValue,
|
||||||
} = useAsyncReactive(() => getGraphData($search, $days), [search, days]);
|
} = useAsyncReactive(() => getGraphData($search, $days), [search, days]);
|
||||||
|
|
||||||
const preferencesPromise = getPreferences();
|
|
||||||
const { loading: prefsLoading, error: prefsError, value: prefsValue } = useAsync(
|
const { loading: prefsLoading, error: prefsError, value: prefsValue } = useAsync(
|
||||||
() => preferencesPromise
|
() => getPreferences()
|
||||||
);
|
);
|
||||||
|
|
||||||
$: revlogRange = daysToRevlogRange($days);
|
$: revlogRange = daysToRevlogRange($days);
|
||||||
|
|
Loading…
Reference in a new issue