Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Update frontend/src/pages/Dashboard.jsx
Browse files
frontend/src/pages/Dashboard.jsx
CHANGED
|
@@ -167,7 +167,7 @@ export const Dashboard = () => {
|
|
| 167 |
const activeToken = getToken();
|
| 168 |
const [summaryRes, historyRes] = await Promise.all([
|
| 169 |
fetch('/api/vulnerabilities/summary', { headers: { 'Authorization': `Bearer ${activeToken}` } }),
|
| 170 |
-
fetch('/api/scans/history',
|
| 171 |
]);
|
| 172 |
|
| 173 |
if (!summaryRes.ok || !historyRes.ok) return;
|
|
|
|
| 167 |
const activeToken = getToken();
|
| 168 |
const [summaryRes, historyRes] = await Promise.all([
|
| 169 |
fetch('/api/vulnerabilities/summary', { headers: { 'Authorization': `Bearer ${activeToken}` } }),
|
| 170 |
+
fetch('/api/scans/history?limit=100', { headers: { 'Authorization': `Bearer ${activeToken}` } })
|
| 171 |
]);
|
| 172 |
|
| 173 |
if (!summaryRes.ok || !historyRes.ok) return;
|