aboutsummaryrefslogtreecommitdiff
path: root/ext/js/language
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-04-21 18:11:43 -0400
committerGitHub <noreply@github.com>2021-04-21 18:11:43 -0400
commitf022febfe95ebbe5bc4e9e457353ceea642327b9 (patch)
tree6c25e8eb17e007960fe440476abbc466f0e17844 /ext/js/language
parentb40cfe0458f277b1153c3ebc6713305491dbec22 (diff)
Fix incorrect return type causing an error (#1623)
Diffstat (limited to 'ext/js/language')
-rw-r--r--ext/js/language/translator.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/language/translator.js b/ext/js/language/translator.js
index 3ee9c3b7..dc91d9eb 100644
--- a/ext/js/language/translator.js
+++ b/ext/js/language/translator.js
@@ -172,7 +172,7 @@ class Translator {
const {alphanumeric, wildcard} = options;
text = this._getSearchableText(text, alphanumeric);
if (text.length === 0) {
- return [[], 0];
+ return {dictionaryEntries: [], originalTextLength: 0};
}
const deinflections = await (