Fix incorrect dictionary name ordering being used for counts (#1912)
This commit is contained in:
parent
58744ed013
commit
93f193c89e
@ -566,7 +566,7 @@ class DictionaryController {
|
|||||||
this._setButtonsEnabled(false);
|
this._setButtonsEnabled(false);
|
||||||
|
|
||||||
const token = this._databaseStateToken;
|
const token = this._databaseStateToken;
|
||||||
const dictionaryTitles = this._dictionaries.map(({title}) => title);
|
const dictionaryTitles = this._dictionaryEntries.map(({dictionaryTitle}) => dictionaryTitle);
|
||||||
const {counts, total} = await yomichan.api.getDictionaryCounts(dictionaryTitles, true);
|
const {counts, total} = await yomichan.api.getDictionaryCounts(dictionaryTitles, true);
|
||||||
if (this._databaseStateToken !== token) { return; }
|
if (this._databaseStateToken !== token) { return; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user