Bugfix lookups labels (#369)

* Update version for gRPC data client

* bugfix display label in lookups components

Co-authored-by: Yamel Senih <ysenih@erpya.com>
pull/3759/head
Leonel Matos 2020-02-26 18:38:53 -04:00 committed by GitHub
parent 7ed14ac44e
commit de202000e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ export default {
if (!this.options.some(option => option.key === value)) {
this.options.push({
key: value,
label: this.findLabel(value)
label: this.isEmptyValue(this.findLabel(value)) ? ' ' : this.findLabel(value)
})
this.value = value
}
@ -170,7 +170,7 @@ export default {
beforeMount() {
if (this.metadata.displayed) {
this.options = this.getterLookupAll
if (!this.isEmptyValue(this.value) && this.metadata.panelType !== 'table') {
if (!this.isEmptyValue(this.value)) {
if (!this.findLabel(this.value)) {
if (!this.isEmptyValue(this.metadata.displayColumn)) {
// verify if exists to add