diff --git a/src/app/three-ways/posts-3.component.ts b/src/app/three-ways/posts-3.component.ts index 1fe69c5..05bbd93 100644 --- a/src/app/three-ways/posts-3.component.ts +++ b/src/app/three-ways/posts-3.component.ts @@ -38,7 +38,7 @@ export class Posts3Component implements OnInit { this._data .takeWhile(() => !this.groupPosts) // unsubscribe once groupPosts has value .subscribe(x => { - this.groupPosts = this.groupByCategory(this.data); + this.groupPosts = this.groupByCategory(x); }); } @@ -52,4 +52,4 @@ export class Posts3Component implements OnInit { return result; } -} \ No newline at end of file +}