diff --git a/plugins/plugin-codeflare-dashboard/src/components/Dashboard/Timeline.tsx b/plugins/plugin-codeflare-dashboard/src/components/Dashboard/Timeline.tsx index 91736c9e..3c30e940 100644 --- a/plugins/plugin-codeflare-dashboard/src/components/Dashboard/Timeline.tsx +++ b/plugins/plugin-codeflare-dashboard/src/components/Dashboard/Timeline.tsx @@ -57,15 +57,14 @@ export default class Timeline extends React.PureComponent { * Render one cell to represent the average over the given `workers` * for the given grid, for the given time. */ - private cell(workers: Worker[], spec: GridSpec, timeIdx: number, isLatest: boolean) { + private cell(workers: Worker[], spec: GridSpec, timeIdx: number) { const metricIdx = avg(workers, "metricIdxTotal", timeIdx) const style = spec.states[metricIdx] ? spec.states[metricIdx].style : { color: "gray", dimColor: true } return ( - - {this.block.historic} - {isLatest ? this.block.latest : ""} - + + {this.block.historic} + ) } @@ -73,7 +72,7 @@ export default class Timeline extends React.PureComponent { private cells(workers: Worker[], spec: GridSpec, nTimes: number, timeStartIdx: number) { return Array(nTimes - timeStartIdx) .fill(0) - .map((_, idx, A) => this.cell(workers, spec, idx + timeStartIdx, idx === A.length - 1)) + .map((_, idx) => this.cell(workers, spec, idx + timeStartIdx)) } /** Render the timeline UI for the given grid */