Fix incorrect dictionary name ordering being used for counts (#1912)

This commit is contained in:
toasted-nutbread 2021-08-28 13:47:03 -04:00 committed by GitHub
parent 58744ed013
commit 93f193c89e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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