diff --git a/apps/web-mzima-client/src/app/feed/feed.component.ts b/apps/web-mzima-client/src/app/feed/feed.component.ts index af54ec4ae..4d06e31f5 100644 --- a/apps/web-mzima-client/src/app/feed/feed.component.ts +++ b/apps/web-mzima-client/src/app/feed/feed.component.ts @@ -442,7 +442,11 @@ export class FeedComponent extends MainViewComponent implements OnInit, OnDestro } public updateMasonry(): void { - this.masonry?.layout(); + console.log('Updating masonry layout'); + if (this.masonry) { + this.masonry.reloadItems(); + this.masonry?.layout(); + } } public masonryUpdateOnModeSwitch({ userEvent }: { userEvent: UserEvent }): void { @@ -868,6 +872,7 @@ export class FeedComponent extends MainViewComponent implements OnInit, OnDestro refreshPost({ id }: PostResult) { this.postsService.getById(id).subscribe((p) => { const updatedPost = _.cloneDeep(p); + console.log(updatedPost); this.posts = this.posts.map((obj) => (obj.id === updatedPost.id ? updatedPost : obj)); }); }