Update modify angular.json to add allowedCommonJsDependencies; adjust responseCounts type in home.page.ts

This commit is contained in:
Dimas Wiese
2026-03-16 00:22:08 +01:00
parent ad6ea50eb7
commit 57fe63ef1f
3 changed files with 6 additions and 3 deletions

1
.gitignore vendored
View File

@@ -68,3 +68,4 @@ testem.log
# System files
.DS_Store
Thumbs.db
CLAUDE.md

View File

@@ -32,7 +32,8 @@
}
],
"styles": ["src/global.scss", "src/theme/variables.scss"],
"scripts": []
"scripts": [],
"allowedCommonJsDependencies": ["sdp", "webrtc-adapter"]
},
"configurations": {
"production": {
@@ -136,7 +137,8 @@
"cli": {
"schematicCollections": [
"@ionic/angular-toolkit"
]
],
"analytics": false
},
"schematics": {
"@ionic/angular-toolkit:component": {

View File

@@ -22,7 +22,7 @@ import type { Survey } from '../shared/models/survey.models';
export class HomePage implements OnInit, OnDestroy {
surveys: Survey[] = [];
/** Map from surveyId → response count (refreshed on each emission) */
responseCounts: Record<string, number> = {};
responseCounts: Record<string, number | undefined> = {};
private surveySubscription?: Subscription;