Fix table values display

This commit is contained in:
Pierre Burgy 2017-09-27 15:36:27 +02:00
parent cc0ecd8783
commit 3ff690aba3

View File

@ -27,8 +27,11 @@ class TableRow extends React.Component {
getDisplayedValue(type, value) {
switch (type.toLowerCase()) {
case 'string':
case 'text':
return value && !isEmpty(value.toString()) ? value.toString() : '-';
case 'float':
case 'integer':
case 'biginteger':
return value && !isEmpty(value.toString()) ? value.toString() : '-';
case 'boolean':
return value && !isEmpty(value.toString()) ? value.toString() : '-';