Commit 8a396acd by Peter Holmberg Committed by GitHub

fix(panel/table): Fix for white text on white background when value is null

parent 4898502e
...@@ -110,6 +110,7 @@ export class TableRenderer { ...@@ -110,6 +110,7 @@ export class TableRenderer {
if (this.isUtc) { if (this.isUtc) {
date = date.utc(); date = date.utc();
} }
return date.format(column.style.dateFormat); return date.format(column.style.dateFormat);
}; };
} }
...@@ -308,13 +309,13 @@ export class TableRenderer { ...@@ -308,13 +309,13 @@ export class TableRenderer {
const startPos = page * pageSize; const startPos = page * pageSize;
const endPos = Math.min(startPos + pageSize, this.table.rows.length); const endPos = Math.min(startPos + pageSize, this.table.rows.length);
let html = ''; let html = '';
const rowClasses = [];
let rowClass = '';
for (let y = startPos; y < endPos; y++) { for (let y = startPos; y < endPos; y++) {
const row = this.table.rows[y]; const row = this.table.rows[y];
let cellHtml = ''; let cellHtml = '';
let rowStyle = ''; let rowStyle = '';
const rowClasses = [];
let rowClass = '';
for (let i = 0; i < this.table.columns.length; i++) { for (let i = 0; i < this.table.columns.length; i++) {
cellHtml += this.renderCell(i, y, row[i], y === startPos); cellHtml += this.renderCell(i, y, row[i], y === startPos);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment