fix(table): renderes empty date column as '-' (#6736)

* fix(table): renderes empty date column as '-'

closes #6728

* docs(changelog): add note about closing 6728
This commit is contained in:
Carl Bergquist
2016-11-28 20:42:43 +01:00
committed by Torkel Ödegaard
parent 2bdeb78885
commit 2bdb2f79ec
3 changed files with 15 additions and 0 deletions

View File

@@ -47,6 +47,10 @@ export class TableRenderer {
if (style.type === 'date') {
return v => {
if (v === undefined || v === null) {
return '-';
}
if (_.isArray(v)) { v = v[0]; }
var date = moment(v);
if (this.isUtc) {