diff --git a/src/app/shared/ui/debug-state/debug-state.component.ts b/src/app/shared/ui/debug-state/debug-state.component.ts index 488756e..8a6f190 100644 --- a/src/app/shared/ui/debug-state/debug-state.component.ts +++ b/src/app/shared/ui/debug-state/debug-state.component.ts @@ -95,17 +95,17 @@ import { redactProfile } from './mask';
@@ -140,8 +140,14 @@ export class DebugStateComponent { // read per-request in interceptors, so a reload re-runs them and re-fetches decisions. protected readonly roles = ROLES; protected readonly scenarios = SCENARIOS; - protected readonly role = currentRole(); - protected readonly scenario = currentScenario(); + // Getters so the dropdowns reflect the CURRENT value whenever the panel is opened + // (not just the value at component construction). + protected get role() { + return currentRole(); + } + protected get scenario() { + return currentScenario(); + } switchRole(r: Role): void { setRole(r);