fixing reason sorting

This commit is contained in:
Alex Yatskov 2017-03-25 12:09:57 -07:00
parent 83a6c30d0e
commit ff3315ebf1

View File

@ -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] : []
}];
}