mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Fix incorrect search being used when evaluating parameters
https://forums.ankiweb.net/t/anki-23-12-beta/37771/89
This commit is contained in:
parent
c56efb4442
commit
4f10a2818f
1 changed files with 3 additions and 2 deletions
|
@ -133,8 +133,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
try {
|
try {
|
||||||
await runWithBackendProgress(
|
await runWithBackendProgress(
|
||||||
async () => {
|
async () => {
|
||||||
const search =
|
const search = $config.weightSearch
|
||||||
$config.weightSearch ?? `preset:"${state.getCurrentName()}"`;
|
? $config.weightSearch
|
||||||
|
: defaultWeightSearch;
|
||||||
const resp = await evaluateWeights({
|
const resp = await evaluateWeights({
|
||||||
weights: $config.fsrsWeights,
|
weights: $config.fsrsWeights,
|
||||||
search,
|
search,
|
||||||
|
|
Loading…
Reference in a new issue