From b4249d9b79e78ef48c77497b5a15f8f043de2999 Mon Sep 17 00:00:00 2001 From: andersonid Date: Mon, 6 Oct 2025 15:54:53 -0300 Subject: [PATCH] fix: completely disable showError for metrics-grid to prevent error alerts --- app/static/index.html | 37 ++++++++++++------------------------- 1 file changed, 12 insertions(+), 25 deletions(-) diff --git a/app/static/index.html b/app/static/index.html index fa85862..847fd47 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -4366,33 +4366,20 @@ function showError(containerId, message) { const container = document.getElementById(containerId); - // If it's metrics-grid, show error above the cards, not replace them + // Skip metrics-grid completely - don't show any error for it if (containerId === 'metrics-grid') { - // Find the parent container to add error above - const parentContainer = container.parentElement; - const errorDiv = document.createElement('div'); - errorDiv.className = 'pf-c-alert pf-m-danger'; - errorDiv.style.marginBottom = '16px'; - errorDiv.innerHTML = ` -
- -
-
Error
-
${message}
- `; - - // Insert error before the metrics grid - parentContainer.insertBefore(errorDiv, container); - } else { - // For other containers, replace content as before - container.innerHTML = ` -
- -

Error

-

${message}

-
- `; + console.error('Error for metrics-grid (ignored):', message); + return; } + + // For other containers, replace content as before + container.innerHTML = ` +
+ +

Error

+

${message}

+
+ `; }