aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-03-25 12:09:57 -0700
committerAlex Yatskov <alex@foosoft.net>2017-03-25 12:09:57 -0700
commitff3315ebf147a3e8d1cab5726724b20a2694aa73 (patch)
treeba67c59444fe6ca53bb84324d620d883df3320fc /ext/bg/js
parent83a6c30d0e68496bc7592b3adfa91ae536a487e1 (diff)
fixing reason sorting
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/deinflector.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/deinflector.js b/ext/bg/js/deinflector.js
index 6e480068..6484f953 100644
--- a/ext/bg/js/deinflector.js
+++ b/ext/bg/js/deinflector.js
@@ -90,7 +90,7 @@ class Deinflection {
source: this.term,
rules: this.rules,
definitions: this.definitions,
- reasons: [this.reason]
+ reasons: this.reason.length > 0 ? [this.reason] : []
}];
}