Select at 0 in the table (#403)

When the select is empty in the table it shows the value 0 you should place it white
pull/3759/head
elsiosanchez 2020-03-11 21:46:35 -04:00 committed by GitHub
parent f0f0c81f03
commit a51989f3ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -634,6 +634,8 @@ export default {
referenceType: field.referenceType,
number: row[field.columnName]
})
} else if (field.componentPath === 'FieldSelect' && this.isEmptyValue(row['DisplayColumn_' + field.columnName]) && row[field.columnName] === 0) {
return field.defaultValue
}
return row['DisplayColumn_' + field.columnName] || row[field.columnName]
},