mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
committed by
Torkel Ödegaard
parent
2bdeb78885
commit
2bdb2f79ec
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user