From 709caf208a7fe826472a7eead0b622a1b7a3c7f4 Mon Sep 17 00:00:00 2001 From: Mike Fitzpatrick Date: Tue, 29 May 2018 01:11:27 -0400 Subject: [PATCH] - Profiles service mapping --- src/services/profiles.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]);