diff --git a/src/services/profiles.ts b/src/services/profiles.ts index 155238f..28d8472 100644 --- a/src/services/profiles.ts +++ b/src/services/profiles.ts @@ -55,7 +55,7 @@ export class ProfileService { data => { this.profiles = {}; this.profiles[type] = data; - this.profiles.reduce((map, profile, i) => { + this.profiles[type].reduce((map, profile, i) => { map[profile._id] = i; return map; }, this.idMap[type]);