Skip to content

Commit f634759

Browse files
klagridaclaude
andcommitted
fix: add non-null assertion to config.service loadConfig
Add non-null assertion operator to fix TypeScript error TS2322. After assigning the config from response.json(), TypeScript still considers it possibly null. The assertion is safe since we just assigned it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1d07bc4 commit f634759

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/app/services/config.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class ConfigService {
2424
}
2525

2626
this.config = await response.json();
27-
return this.config;
27+
return this.config!;
2828
}
2929

3030
getConfig(): AppConfig {

0 commit comments

Comments
 (0)