Skip to content

Commit 461787c

Browse files
committed
fix: send comments as a parent child
1 parent 2a3423d commit 461787c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/ai-workflow/ai-workflow.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,6 @@ export class AiWorkflowService {
859859
);
860860

861861
// Reconstruct comments with child comments nested in parent's "comments" property
862-
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
863862
const commentsById: Record<string, any> = {};
864863

865864
for (const item of items) {
@@ -886,6 +885,7 @@ export class AiWorkflowService {
886885
for (const item of items) {
887886
item.comments = item.comments
888887
.filter((comment) => !comment.parentId)
888+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
889889
.map((comment) => commentsById[comment.id]);
890890
}
891891

0 commit comments

Comments
 (0)