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}

+
+ `; }