Update modify angular.json to add allowedCommonJsDependencies; adjust responseCounts type in home.page.ts
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -68,3 +68,4 @@ testem.log
|
||||
# System files
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
CLAUDE.md
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user