Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Commit

Permalink
Fix incorrect index being used for headword removal (#1933)
Browse files Browse the repository at this point in the history
  • Loading branch information
toasted-nutbread committed Sep 11, 2021
1 parent 048089e commit 39a704e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/js/language/translator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 39a704e

Please sign in to comment.