socialnetworknews-web

A open-source Paper.li clone
git clone git://archive.git.mtrnord.blog/SocialNetworkNews/socialnetworknews-web.git
Log | Files | Refs | README | LICENSE

commit b9bed89b4891aebc140c7beb3033330cf85ef623
parent 15fe4462d67f30804b5c7feae385330ce9643c6b
Author: MTRNord <mtrnord1@gmail.com>
Date:   Mon, 26 Mar 2018 19:05:25 +0200

Fix typo

Diffstat:
Msrc/app/tweet-list/tweet-list.component.ts | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/app/tweet-list/tweet-list.component.ts b/src/app/tweet-list/tweet-list.component.ts @@ -84,7 +84,7 @@ export class TweetListComponent implements OnInit { .concat(Observable.throw({error: 'Sorry, there was an error (after 5 retries). This probably means we can\'t reach our API Server :('})); }) .subscribe( - data => { this.data = this.sort(data.tweet); }, + data => { this.data = this.sort(data.tweets); }, err => { this.toastr.error(err['error'], 'Error connecting API', { positionClass: 'toast-top-center', @@ -108,7 +108,7 @@ export class TweetListComponent implements OnInit { }; arr.sort(compare); - return arr + return arr; } private chunk(arr: (TweetsEntity)[], size: number): (TweetsEntity)[][] {