From dfddf3792ea47ac91fd8bded58a88c87f4febfe2 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Thu, 9 Sep 2021 23:29:41 -0400 Subject: Fix redundant secondary term lookups (#1942) --- ext/js/language/translator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/js/language/translator.js b/ext/js/language/translator.js index 2df39299..641c9d57 100644 --- a/ext/js/language/translator.js +++ b/ext/js/language/translator.js @@ -433,10 +433,10 @@ class Translator { groups: [] }; targetMap.set(key, target); + termList.push({term, reading}); + targetList.push(target); } target.groups.push(group); - termList.push({term, reading}); - targetList.push(target); } } -- cgit v1.2.3