From a67c2440700e9cc962f10722abf16c11c849197c Mon Sep 17 00:00:00 2001 From: andersonid Date: Fri, 3 Oct 2025 08:42:18 -0300 Subject: [PATCH] fix: remove duplicate loadWorkloadDetails function - Remove duplicate loadWorkloadDetails function that was causing accordion loading issues - Keep only the version with index parameter for accordion functionality - Fix Historical Analysis workload details loading in accordions --- app/static/index.html | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/app/static/index.html b/app/static/index.html index 664a558..72c0ef8 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -2554,19 +2554,6 @@ document.getElementById('workload-details-container').classList.remove('section-hidden'); } - async function loadWorkloadDetails(workloadName, namespace) { - try { - const response = await fetch(`/api/v1/historical-analysis/${namespace}/${workloadName}`); - const data = await response.json(); - - updateWorkloadDetails(data); - - } catch (error) { - console.error('Error loading workload details:', error); - document.getElementById('workload-details-content').innerHTML = - '
Failed to load workload details
'; - } - } function toggleWorkloadDetails(index) { const detailsRow = document.getElementById(`details-${index}`);