fix translate option

This commit is contained in:
Yuri Kuznetsov
2022-07-03 12:54:11 +03:00
parent 572aceb107
commit dda1b4e547
3 changed files with 17 additions and 10 deletions
+6 -3
View File
@@ -79,11 +79,14 @@ function (Dep, Selectize, _) {
}
}
let translationKey = value || '';
if (
typeof value !== 'undefined' && value !== null && value !== ''
typeof value !== 'undefined' && value !== null && value !== ''
||
value === '' && (
value in (this.translatedOptions || {}) && (this.translatedOptions || {})[value] !== ''
translationKey === '' && (
translationKey in (this.translatedOptions || {}) &&
(this.translatedOptions || {})[translationKey] !== ''
)
) {
data.isNotEmpty = true;