From 2f9eed7cd6587d5379d2763492d598c9df6dae3e Mon Sep 17 00:00:00 2001 From: admtracksteel Date: Mon, 22 Jun 2026 19:03:51 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Auto-deploy:=20BrainKP=20atualiz?= =?UTF-8?q?ado=20em=2022/06/2026=2019:03:51?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/index.html b/static/index.html index f728ff8..c9d43e2 100644 --- a/static/index.html +++ b/static/index.html @@ -277,14 +277,14 @@ async function loadStatus() { let runningScripts = []; if (lr) { - const isRunning = lr.scripts.some(s => s.status === 'running'); + const isRunning = lr.scripts && lr.scripts.some(s => s.status === 'running'); if (isRunning) { isAnyRunning = true; - runningScripts = lr.scripts.filter(s => s.status === 'running').map(s => s.name); + runningScripts = lr.scripts ? lr.scripts.filter(s => s.status === 'running').map(s => s.name) : []; badge.innerHTML = ' Em andamento'; badge.className = 'badge yellow'; } else { - const ok = !lr.has_error && lr.scripts.every(s => s.status === 'ok'); + const ok = !lr.has_error && lr.scripts && lr.scripts.every(s => s.status === 'ok'); badge.textContent = ok ? '✓ Concluído' : '⚠ Erro'; badge.className = `badge ${ok ? 'green' : 'red'}`; }