Skip to content

Commit

Permalink
style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rjkoh committed Oct 15, 2024
1 parent beb64a6 commit 05b9b0e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ const CodeAnalysisTimeline: React.FC<CodeAnalysisTimelineProps> = ({
for (let i = 0; i < dataPoint.metrics.length; i++) {
const metric = dataPoint.metrics[i];
const value = dataPoint.values[i];
const type = dataPoint.types[i];
const domain = dataPoint.domains[i];

// Ignore metrics that are not of the above domains for timeline.
Expand All @@ -62,14 +61,14 @@ const CodeAnalysisTimeline: React.FC<CodeAnalysisTimelineProps> = ({
}
});

const chartData = new Map<string, { [key: string]: any }[]>();
const chartData = new Map<string, { [key: string]: number | Date }[]>();
for (const d of domains) {
chartData.set(d, []);
}

for (const [dm, dateMap] of data) {
for (const [date, metricMap] of dateMap) {
const datePoint: { [key: string]: any } = { executionDate: date };
const datePoint: { [key: string]: number | Date } = { executionDate: date };
for (const [metric, value] of metricMap) {
datePoint[metric] = value;
}
Expand Down

0 comments on commit 05b9b0e

Please sign in to comment.