diff options
Diffstat (limited to 'shared/extra-utils/videos/comments-command.ts')
-rw-r--r-- | shared/extra-utils/videos/comments-command.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/extra-utils/videos/comments-command.ts b/shared/extra-utils/videos/comments-command.ts index 5034c57ad..f0d163a07 100644 --- a/shared/extra-utils/videos/comments-command.ts +++ b/shared/extra-utils/videos/comments-command.ts | |||
@@ -84,7 +84,7 @@ export class CommentsCommand extends AbstractCommand { | |||
84 | defaultExpectedStatus: HttpStatusCode.OK_200 | 84 | defaultExpectedStatus: HttpStatusCode.OK_200 |
85 | })) | 85 | })) |
86 | 86 | ||
87 | this.lastThreadId = body.comment.id | 87 | this.lastThreadId = body.comment?.id |
88 | this.lastVideoId = videoId | 88 | this.lastVideoId = videoId |
89 | 89 | ||
90 | return body.comment | 90 | return body.comment |
@@ -107,7 +107,7 @@ export class CommentsCommand extends AbstractCommand { | |||
107 | defaultExpectedStatus: HttpStatusCode.OK_200 | 107 | defaultExpectedStatus: HttpStatusCode.OK_200 |
108 | })) | 108 | })) |
109 | 109 | ||
110 | this.lastReplyId = body.comment.id | 110 | this.lastReplyId = body.comment?.id |
111 | 111 | ||
112 | return body.comment | 112 | return body.comment |
113 | } | 113 | } |