We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fae3dcd commit c3a99b6Copy full SHA for c3a99b6
src/renderer/components/watch-video-comments/watch-video-comments.js
@@ -260,6 +260,12 @@ export default defineComponent({
260
/** @type {import('youtubei.js').YTNodes.CommentThread} */
261
const commentThread = this.replyTokens.get(comment.id)
262
263
+ if (commentThread == null) {
264
+ this.replyTokens.delete(comment.id)
265
+ comment.hasReplyToken = false
266
+ return
267
+ }
268
+
269
if (comment.replies.length > 0) {
270
await commentThread.getContinuation()
271
comment.replies = comment.replies.concat(commentThread.replies.map(reply => parseLocalComment(reply)))
0 commit comments