Skip to content

Commit

Permalink
Fix error where timestamp and entry colors were the same
Browse files Browse the repository at this point in the history
  • Loading branch information
ckitsanelis committed Dec 1, 2023
1 parent 3b3b156 commit 7f8774d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/viewer/LogFile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,8 @@ export default class LogFile {

private computeDefaultColumnColors() {
for (let i = 0; i < this.contentHeaders.length; i++) {
if (this.contentHeaders[i].toLowerCase() !== "timestamp"){
const values = this.rows.map((r) => r[i]);
this.columnsColors[i] = LogFile.computeColors(this.headers[i], values);
} else {
this.columnsColors[i] = this.columnsColors[0];
}
const values = this.rows.map((r) => r[i]);
this.columnsColors[i] = LogFile.computeColors(this.headers[i], values);
}
}

Expand Down

0 comments on commit 7f8774d

Please sign in to comment.