Refactor feed manipulation and rendering to be more robust (#297)

This commit is contained in:
Paul Frazee 2023-03-16 15:54:06 -05:00 committed by GitHub
parent 93df983692
commit c50a20d214
7 changed files with 360 additions and 260 deletions

View file

@ -100,7 +100,7 @@ export class ProfileUiModel {
if (this.selectedView === Sections.Posts) {
arr = this.feed.nonReplyFeed
} else {
arr = this.feed.feed.slice()
arr = this.feed.slices.slice()
}
if (!this.feed.hasMore) {
arr = arr.concat([ProfileUiModel.END_ITEM])