fix: resolve syntax error in dashboard.js caused by escaped template literals
Build Curio HMS / build-and-deploy (push) Successful in 1m3s Details

This commit is contained in:
Deep Koluguri 2026-05-23 00:49:26 -04:00
parent 0f2f598465
commit 6e2f9b4f94
1 changed files with 5 additions and 5 deletions

View File

@ -611,13 +611,13 @@ function renderAlerts(alerts) {
alerts.forEach((alert, index) => {
if (alert.is_dangerous) {
html += \`
html += `
<div style="background-color: #fee2e2; border-left: 4px solid #ef4444; padding: 10px; margin-bottom: 10px; border-radius: 4px;">
<strong style="color: #991b1b;">Alert #\${index + 1}</strong>
<p style="margin: 5px 0; color: #7f1d1d;">\${alert.danger_explanation}</p>
<p style="margin: 0; font-size: 0.9em; color: #991b1b;"><strong>Action:</strong> \${alert.recommended_action}</p>
<strong style="color: #991b1b;">Alert #${index + 1}</strong>
<p style="margin: 5px 0; color: #7f1d1d;">${alert.danger_explanation}</p>
<p style="margin: 0; font-size: 0.9em; color: #991b1b;"><strong>Action:</strong> ${alert.recommended_action}</p>
</div>
\`;
`;
}
});