summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/js/pages/settings/sort-frequency-dictionary-controller.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/pages/settings/sort-frequency-dictionary-controller.js b/ext/js/pages/settings/sort-frequency-dictionary-controller.js
index 774c3e35..6be24eeb 100644
--- a/ext/js/pages/settings/sort-frequency-dictionary-controller.js
+++ b/ext/js/pages/settings/sort-frequency-dictionary-controller.js
@@ -107,7 +107,7 @@ export class SortFrequencyDictionaryController {
option.textContent = 'None';
fragment.appendChild(option);
for (const {title, counts} of dictionaries) {
- if (counts.termMeta.freq > 0) {
+ if (counts && counts.termMeta && counts.termMeta.freq > 0) {
option = document.createElement('option');
option.value = title;
option.textContent = title;