Skip to content

Commit

Permalink
[Fix] Employee Duplication in the Selection Input During Task Retriev…
Browse files Browse the repository at this point in the history
…al for a Single Employee
  • Loading branch information
samuelmbabhazi committed Oct 20, 2024
1 parent af9e72f commit f2a133b
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 f2a133b

Please sign in to comment.