Skip to content

Commit 4dba30d

Browse files
committed
UI bug fix: Performance graph did not automatically refresh during live data update
1 parent db847a8 commit 4dba30d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/static/js/main.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,13 @@ function loadAndRenderData(data) {
106106
metricSelect.addEventListener('change', function() {
107107
localStorage.setItem('selectedMetric', metricSelect.value);
108108
});
109+
const perfTab = document.getElementById('tab-performance');
110+
const perfView = document.getElementById('view-performance');
111+
if (perfTab && perfView && (perfTab.classList.contains('active') || perfView.style.display !== 'none')) {
112+
if (window.updatePerformanceGraph) {
113+
window.updatePerformanceGraph(data.nodes);
114+
}
115+
}
109116
}
110117

111118
if (window.STATIC_DATA) {

0 commit comments

Comments
 (0)