From 243cb599058714424fe436f900ff955430e8b41c Mon Sep 17 00:00:00 2001 From: icebox Date: Mon, 20 Feb 2017 19:46:42 +0100 Subject: [PATCH] fix(activity): move initialization to the constructor $onInit method is not called in a service: activities array was undefined and in streaming loop the refresh call raised an exception hidden in the empty catch. Bug introduced in the massive changes for webpack. --- src/client/app/components/activity/activity.service.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/client/app/components/activity/activity.service.js b/src/client/app/components/activity/activity.service.js index fcca534c..10715124 100644 --- a/src/client/app/components/activity/activity.service.js +++ b/src/client/app/components/activity/activity.service.js @@ -3,9 +3,7 @@ export class ActivityService { this.$http = $http; this.SessionService = SessionService; this.AccountsService = AccountsService; - } - $onInit() { this.activities = []; }