From 687ea1dec8d6affa7670e8604d8f112809f76429 Mon Sep 17 00:00:00 2001 From: Rachel Date: Thu, 7 Sep 2023 14:40:44 -0700 Subject: [PATCH] loop rows for subtest names --- webapp/components/new-test-results-history-grid.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webapp/components/new-test-results-history-grid.js b/webapp/components/new-test-results-history-grid.js index 5301ac5700..d5986e2af2 100644 --- a/webapp/components/new-test-results-history-grid.js +++ b/webapp/components/new-test-results-history-grid.js @@ -264,7 +264,12 @@ class TestResultsGrid extends PathInfo(PolymerElement) { this.historicalData = await fetch('/api/history', options) .then(r => r.json()).then(data => data.results); - this.subtestNames = Object.keys(this.historicalData[BROWSER_NAMES[0]]); + + this.subtestNames = [] + rows.forEach(row => { + this.subtestNames.push(row.name) + }) + // this.subtestNames = Object.keys(this.historicalData[BROWSER_NAMES[0]]); console.log(this.subtestNames) } }