diff --git a/compliance-dashboard/src/pages/sbom.rs b/compliance-dashboard/src/pages/sbom.rs index 9dd7f16..693ffb5 100644 --- a/compliance-dashboard/src/pages/sbom.rs +++ b/compliance-dashboard/src/pages/sbom.rs @@ -126,7 +126,10 @@ pub fn SbomPage(target: String, #[props(default)] ecosystem: 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 ──