From bb5c9ac8a02be64a84e29439596f13001630a2bc Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Tue, 10 Nov 2026 12:51:33 +0100 Subject: [PATCH] fix(dashboard): reset the licence group only when one is set (#957) Co-Authored-By: Claude Opus 5.5 --- compliance-dashboard/src/pages/sbom.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compliance-dashboard/src/pages/sbom.rs b/compliance-dashboard/src/pages/sbom.rs index 44d6474..db5de68 100644 --- a/compliance-dashboard/src/pages/sbom.rs +++ b/compliance-dashboard/src/pages/sbom.rs @@ -100,7 +100,10 @@ pub fn SbomPage(target: String) -> Element { // Another target starts at the chart again. use_effect(move || { repo_filter.read(); - licence_group.set(None); + // `peek` reads without subscribing: only the target re-runs this. + if licence_group.peek().is_some() { + licence_group.set(None); + } }); // ── License summary ──