Skip to content

Commit 80999cb

Browse files
committed
Fix issue with the creation of comments that require approval
Closes #6150
1 parent b2d4cf6 commit 80999cb

File tree

2 files changed

+0
-18
lines changed
  • ts/WoltLabSuite/Core/Component/Comment
  • wcfsetup/install/files/js/WoltLabSuite/Core/Component/Comment

2 files changed

+0
-18
lines changed

ts/WoltLabSuite/Core/Component/Comment/List.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -352,11 +352,6 @@ class CommentList {
352352
async #loadCreatedComment(commentId: number): Promise<void> {
353353
const response = await renderComment(commentId);
354354
if (!response.ok) {
355-
const validationError = response.error.getValidationError();
356-
if (validationError === undefined) {
357-
throw new Error("Unexpected validation error", { cause: response.error });
358-
}
359-
360355
return;
361356
}
362357

@@ -374,11 +369,6 @@ class CommentList {
374369
async #loadCreatedResponse(commentId: number, responseId: number): Promise<void> {
375370
const response = await renderResponse(responseId);
376371
if (!response.ok) {
377-
const validationError = response.error.getValidationError();
378-
if (validationError === undefined) {
379-
throw new Error("Unexpected validation error", { cause: response.error });
380-
}
381-
382372
return;
383373
}
384374

wcfsetup/install/files/js/WoltLabSuite/Core/Component/Comment/List.js

Lines changed: 0 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)