diff options
-rw-r--r-- | ext/js/language/translator.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/language/translator.js b/ext/js/language/translator.js index c35d2203..2df39299 100644 --- a/ext/js/language/translator.js +++ b/ext/js/language/translator.js @@ -535,7 +535,7 @@ class Translator { const indexRemap = new Map(); let oldIndex = 0; for (let i = 0, ii = headwords.length; i < ii; ++i) { - if (removeHeadwordIndices.has(i)) { + if (removeHeadwordIndices.has(oldIndex)) { headwords.splice(i, 1); --i; --ii; |