Skip to content

Commit

Permalink
fix: add task to comments when created by user
Browse files Browse the repository at this point in the history
  • Loading branch information
macite committed Sep 29, 2022
1 parent 08a8f42 commit 3f78e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/services/task-comment.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ export class TaskCommentService extends CachedEntityService<TaskComment> {

opts.cache = task.commentCache;
opts.body = body;
opts.constructorParams = task;
const self = this;

return this.create(pathId, opts).pipe(
tap((tc: TaskComment) => {
task.comments.push(tc);
task.refreshCommentData();
self.commentAdded$.emit(tc);
})
Expand Down

0 comments on commit 3f78e48

Please sign in to comment.