fix: render errores_det objects as readable text in historial
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
33e569c27a
commit
268451decc
@@ -425,7 +425,11 @@ async function cargarHistorialScheduler() {
|
|||||||
${errDet.length ? `
|
${errDet.length ? `
|
||||||
<div class="mb-3 bg-red-50 border border-red-200 rounded-lg px-3 py-2 text-xs text-red-700">
|
<div class="mb-3 bg-red-50 border border-red-200 rounded-lg px-3 py-2 text-xs text-red-700">
|
||||||
<p class="font-medium mb-1"><i class="fas fa-exclamation-circle mr-1"></i>${errDet.length} error(es):</p>
|
<p class="font-medium mb-1"><i class="fas fa-exclamation-circle mr-1"></i>${errDet.length} error(es):</p>
|
||||||
<ul class="list-disc ml-4 space-y-0.5">${errDet.map(e => `<li>${e}</li>`).join('')}</ul>
|
<ul class="list-disc ml-4 space-y-0.5">${errDet.map(e =>
|
||||||
|
typeof e === 'object'
|
||||||
|
? `<li><span class="font-mono text-red-400">${e.doc || ''}</span> ${e.nombre || ''} — ${e.msg || JSON.stringify(e)}</li>`
|
||||||
|
: `<li>${e}</li>`
|
||||||
|
).join('')}</ul>
|
||||||
</div>` : ''}
|
</div>` : ''}
|
||||||
<div class="max-h-96 overflow-y-auto space-y-2 text-xs">
|
<div class="max-h-96 overflow-y-auto space-y-2 text-xs">
|
||||||
${detHtml}
|
${detHtml}
|
||||||
|
|||||||
Reference in New Issue
Block a user