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 ──