Skip to content

Commit

Permalink
skip first index in loop
Browse files Browse the repository at this point in the history
  • Loading branch information
racheljay committed Sep 7, 2023
1 parent 687ea1d commit d9d2759
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions webapp/components/new-test-results-history-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import { PolymerElement, html } from '../node_modules/@polymer/polymer/polymer-element.js';
const pageStyle = getComputedStyle(document.body);
import { PathInfo } from './path.js';
import { TestRunsUIQuery } from './test-runs-query.js';
import { TestRunsQueryLoader } from './test-runs.js';

const PASS_COLOR = pageStyle.getPropertyValue('--paper-green-300');
const FAIL_COLOR = pageStyle.getPropertyValue('--paper-red-300');
Expand Down Expand Up @@ -98,7 +96,6 @@ class TestResultsGrid extends PathInfo(PolymerElement) {
}

displayCharts(showTestHistory, path, rows) {
console.log("HERE THE ROWS", rows)
if (!path || !showTestHistory || !this.computePathIsATestFile(path)) {
return;
}
Expand Down Expand Up @@ -265,12 +262,10 @@ class TestResultsGrid extends PathInfo(PolymerElement) {
this.historicalData = await fetch('/api/history', options)
.then(r => r.json()).then(data => data.results);

this.subtestNames = []
rows.forEach(row => {
this.subtestNames.push(row.name)
})
// this.subtestNames = Object.keys(this.historicalData[BROWSER_NAMES[0]]);
console.log(this.subtestNames)
this.subtestNames = [''];
for (let i = 1; i < rows.length; i++) {
this.subtestNames.push(rows[i].name);
}
}
}

Expand Down

0 comments on commit d9d2759

Please sign in to comment.