From f578f39f0a5a25da1d7209fb2338f9a3b37c90db Mon Sep 17 00:00:00 2001 From: Ben Richard <143630488+benrichard-amd@users.noreply.github.com> Date: Tue, 7 Oct 2025 10:29:45 -0400 Subject: [PATCH] Fix web GUI displaying same section multiple times (#1267) Some sections were being displayed multiple times in the web GUI. Code to append the section was nested inside the subsection loop, so each time a new subsction was appened to the section, the entire section was appended. --- .../rocprof_compute_analyze/analysis_webui.py | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/projects/rocprofiler-compute/src/rocprof_compute_analyze/analysis_webui.py b/projects/rocprofiler-compute/src/rocprof_compute_analyze/analysis_webui.py index 679543e10b..682a0c3181 100644 --- a/projects/rocprofiler-compute/src/rocprof_compute_analyze/analysis_webui.py +++ b/projects/rocprofiler-compute/src/rocprof_compute_analyze/analysis_webui.py @@ -286,21 +286,21 @@ class webui_analysis(OmniAnalyze_Base): ) ) - # Append the new section with all of it's contents - div_children.append( - html.Section( - id=section_title, - children=[ - html.H3( - children=title, - style={"color": "white"}, - ), - html.Div( - className="float-container", children=html_section - ), - ], - ) + # Append the new section with all of it's contents + div_children.append( + html.Section( + id=section_title, + children=[ + html.H3( + children=title, + style={"color": "white"}, + ), + html.Div( + className="float-container", children=html_section + ), + ], ) + ) # Display pop-up message if no filters are applied if not (disp_filt or kernel_filter or gcd_filter):