Merge pull request #258 from strapi/fix/table-values

Fix table values display
This commit is contained in:
Pierre BURGY 2017-09-27 16:12:06 +02:00 committed by GitHub
commit a3b2476f39

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() : '-';