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 4m22s
CI / Check (pull_request) Successful in 17m53s

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