diff --git a/src/app/reader/_components/main-page/posts-list/posts-list.component.html b/src/app/reader/_components/main-page/posts-list/posts-list.component.html index 9903f8b..a79b20a 100755 --- a/src/app/reader/_components/main-page/posts-list/posts-list.component.html +++ b/src/app/reader/_components/main-page/posts-list/posts-list.component.html @@ -85,11 +85,6 @@ @for (post of posts(); track post.id) { } - @if (posts2) { - @for (post of posts2; track post.id) { - - } - } diff --git a/src/app/reader/_components/main-page/posts-list/posts-list.component.ts b/src/app/reader/_components/main-page/posts-list/posts-list.component.ts index ad66fc6..ee21af5 100755 --- a/src/app/reader/_components/main-page/posts-list/posts-list.component.ts +++ b/src/app/reader/_components/main-page/posts-list/posts-list.component.ts @@ -36,7 +36,7 @@ import { ReaderApiService } from '../../../_services/reader-api.service'; changeDetection: ChangeDetectionStrategy.Default, schemas: [CUSTOM_ELEMENTS_SCHEMA], }) -export class PostsListComponent implements OnInit { +export class PostsListComponent { scroll = viewChild>('scrollContainer'); postStore = inject(PostsStore); @@ -54,11 +54,6 @@ export class PostsListComponent implements OnInit { this.initializeScrollingForMobileView(); } - ngOnInit() { - //TODO: FIX HACK FOR PRERENDERING - this.applyPrerenderingHack(); - } - onScroll(event: Event) { const target = event.target as HTMLElement; const scrollLeft = target.scrollLeft;