Spaces:
Running
Running
Update index.html
Browse files- index.html +2 -5
index.html
CHANGED
@@ -168,12 +168,9 @@
|
|
168 |
throw new Error(`Failed to fetch file: ${response.statusText}`);
|
169 |
}
|
170 |
|
171 |
-
const
|
172 |
|
173 |
-
|
174 |
-
const headers = rows.shift(); // Assume first row contains headers
|
175 |
-
|
176 |
-
return { headers, rows };
|
177 |
}
|
178 |
const metricFilter = document.getElementById('metricFilter');
|
179 |
const table = document.getElementById('csvTable');
|
|
|
168 |
throw new Error(`Failed to fetch file: ${response.statusText}`);
|
169 |
}
|
170 |
|
171 |
+
const content = await response.text();
|
172 |
|
173 |
+
return parseCSV(content);
|
|
|
|
|
|
|
174 |
}
|
175 |
const metricFilter = document.getElementById('metricFilter');
|
176 |
const table = document.getElementById('csvTable');
|