From 4c6ef29e2020c92e4e995ba2779f12076a356a59 Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Tue, 28 Nov 2017 10:48:52 +0300 Subject: [PATCH] Fixed: Behavior Subject must be array --- src/app/main/content/apps/contacts/contacts.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/main/content/apps/contacts/contacts.service.ts b/src/app/main/content/apps/contacts/contacts.service.ts index 4c96bed4..aa1ff0c2 100644 --- a/src/app/main/content/apps/contacts/contacts.service.ts +++ b/src/app/main/content/apps/contacts/contacts.service.ts @@ -10,7 +10,7 @@ import { Subject } from 'rxjs/Subject'; @Injectable() export class ContactsService implements Resolve { - onContactsChanged: BehaviorSubject = new BehaviorSubject({}); + onContactsChanged: BehaviorSubject = new BehaviorSubject([]); onSelectedContactsChanged: BehaviorSubject = new BehaviorSubject([]); onUserDataChanged: BehaviorSubject = new BehaviorSubject([]); onSearchTextChanged: Subject = new Subject();