Skip to content

Commit

Permalink
Merge pull request #8467 from ever-co/fix/8466-employee-duplication
Browse files Browse the repository at this point in the history
[Fix] Employee Duplication in the Selection Input During Task Retriev…
  • Loading branch information
rahul-rocket authored Oct 21, 2024
2 parents 19d94da + f2a133b commit 62e247b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class AddTaskDialogComponent extends TranslationBaseComponent implements
distinctUntilChange(),
filter((employee: ISelectedEmployee) => !!employee && !!employee.id),
tap((employee: ISelectedEmployee) => {
if (!this.task) {
if (!this.selectedTask) {
this.selectedMembers.push(employee.id);
}
}),
Expand All @@ -127,7 +127,7 @@ export class AddTaskDialogComponent extends TranslationBaseComponent implements
distinctUntilChange(),
filter((project: IOrganizationProject) => !!project && !!project.id),
tap((project: IOrganizationProject) => {
if (!this.task) {
if (!this.selectedTask) {
this.form.get('project').setValue(project);
this.form.get('projectId').setValue(project.id);
this.form.updateValueAndValidity();
Expand Down

0 comments on commit 62e247b

Please sign in to comment.