fix(dashboard): reset the licence group only when one is set (#957)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 6m15s
CI / Check (pull_request) Successful in 21m38s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-11-10 18:23:01 +01:00
1 parent 4cccaf6fb2
commit ee17235182
1 file changed
+4 -1
+4 -1
View File
@@ -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 ──