aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/database.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/database.js b/ext/bg/js/database.js
index dea78196..15291968 100644
--- a/ext/bg/js/database.js
+++ b/ext/bg/js/database.js
@@ -71,7 +71,7 @@ class Database {
results.push({
expression: row.expression,
reading: row.reading,
- definitionTags: dictFieldSplit(row.definitionTags),
+ definitionTags: dictFieldSplit(row.definitionTags || row.tags || ''),
termTags: dictFieldSplit(row.termTags || ''),
rules: dictFieldSplit(row.rules),
glossary: row.glossary,
@@ -97,7 +97,7 @@ class Database {
results.push({
expression: row.expression,
reading: row.reading,
- definitionTags: dictFieldSplit(row.definitionTags),
+ definitionTags: dictFieldSplit(row.definitionTags || row.tags || ''),
termTags: dictFieldSplit(row.termTags || ''),
rules: dictFieldSplit(row.rules),
glossary: row.glossary,
@@ -123,7 +123,7 @@ class Database {
results.push({
expression: row.expression,
reading: row.reading,
- definitionTags: dictFieldSplit(row.definitionTags),
+ definitionTags: dictFieldSplit(row.definitionTags || row.tags || ''),
termTags: dictFieldSplit(row.termTags || ''),
rules: dictFieldSplit(row.rules),
glossary: row.glossary,