From 93f193c89eea381046f00f3a586beb66b2de0b19 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 28 Aug 2021 13:47:03 -0400 Subject: [PATCH] Fix incorrect dictionary name ordering being used for counts (#1912) --- ext/js/pages/settings/dictionary-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/js/pages/settings/dictionary-controller.js b/ext/js/pages/settings/dictionary-controller.js index 8df4b6bd..a041e791 100644 --- a/ext/js/pages/settings/dictionary-controller.js +++ b/ext/js/pages/settings/dictionary-controller.js @@ -566,7 +566,7 @@ class DictionaryController { this._setButtonsEnabled(false); 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); if (this._databaseStateToken !== token) { return; }