Revert "Fixing certain definitions not showing up"

This reverts commit 85015b1776.
This commit is contained in:
Alex Yatskov 2016-05-18 12:30:45 -07:00
parent 85015b1776
commit a306d73118

View File

@ -151,10 +151,9 @@ class Translator {
return definitions;
}
processTerm(groups, source, tags, rules=[], root) {
processTerm(groups, source, tags, rules=[], root='') {
for (const entry of this.dictionary.findTerm(root)) {
const groupId = `${source}_${entry.id}`;
if (groupId in groups) {
if (entry.id in groups) {
continue;
}
@ -209,7 +208,7 @@ class Translator {
});
if (matched) {
groups[groupId] = {
groups[entry.id] = {
expression: entry.expression,
reading: entry.reading,
glossary: entry.glossary,