Skip to content

Commit

Permalink
Fixes strapi#1231
Browse files Browse the repository at this point in the history
  • Loading branch information
soupette committed May 25, 2018
1 parent f589705 commit 19155e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions admin/src/components/TableRow/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ class TableRow extends React.Component {
case 'time':
case 'datetime':
case 'timestamp': {
if (value === null) {
return '-';
}

const date = value && isObject(value) && value._isAMomentObject === true ?
value :
moment(value);
Expand Down

0 comments on commit 19155e5

Please sign in to comment.