fix(typescript): tighten TypeScript null safety and error handling across backend and ops UI

This commit is contained in:
2026-03-26 07:40:56 +00:00
parent 0195a21f30
commit 44f2a7f0a9
40 changed files with 414 additions and 451 deletions

View File

@@ -71,12 +71,12 @@ class AppRouter {
private updateViewState(view: string): void {
this.suppressStateUpdate = true;
const currentState = appstate.uiStatePart.getState();
const currentState = appstate.uiStatePart.getState()!;
if (currentState.activeView !== view) {
appstate.uiStatePart.setState({
...currentState,
activeView: view,
});
} as appstate.IUiState);
}
this.suppressStateUpdate = false;
}
@@ -94,7 +94,7 @@ class AppRouter {
}
public getCurrentView(): string {
return appstate.uiStatePart.getState().activeView;
return appstate.uiStatePart.getState()!.activeView;
}
public destroy(): void {