Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

video-watch.video-threads.loaded after DOM loading

Chocobozzzd65cd1655144
diff --git a/client/src/app/+videos/+video-watch/shared/comment/video-comments.component.ts b/client/src/app/+videos/+video-watch/shared/comment/video-comments.component.ts
index 8e556c58f6..1652fd3c4c 100644
--- a/client/src/app/+videos/+video-watch/shared/comment/video-comments.component.ts
+++ b/client/src/app/+videos/+video-watch/shared/comment/video-comments.component.ts
@@ -130,7 +130,8 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy {
this.totalNotDeletedComments = res.totalNotDeletedComments
this.onDataSubject.next(res.data)
- this.hooks.runAction('action:video-watch.video-threads.loaded', 'video-watch', { data: this.componentPagination })
+
+ setTimeout(() => this.hooks.runAction('action:video-watch.video-threads.loaded', 'video-watch', { data: this.componentPagination }))
},
error: err => this.notifier.error(err.message)