Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Commit

Permalink
fix(activity): move initialization to the constructor
Browse files Browse the repository at this point in the history
$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.
  • Loading branch information
albertosantini committed Feb 20, 2017
1 parent a14c7d2 commit 243cb59
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/client/app/components/activity/activity.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ export class ActivityService {
this.$http = $http;
this.SessionService = SessionService;
this.AccountsService = AccountsService;
}

$onInit() {
this.activities = [];
}

Expand Down

0 comments on commit 243cb59

Please sign in to comment.