Skip to content

Commit 8f6c6a5

Browse files
wobravoscastillo-jp
authored andcommitted
fix: TT-149 When edit Date In update the Date Out
1 parent 102a22c commit 8f6c6a5

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/app/modules/shared/components/details-fields/details-fields.component.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ describe('DetailsFieldsComponent', () => {
466466
endDateInput.dispatchEvent(new Event('#end_date'));
467467

468468
expect(endDateInput.value).not.toEqual(startDateInput.value);
469+
expect(startDateInput.value).toEqual(expectedStartDate);
469470
});
470471

471472

src/app/modules/shared/components/details-fields/details-fields.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ export class DetailsFieldsComponent implements OnChanges, OnInit {
128128
this.end_date.setValue($event);
129129
}
130130

131-
132-
133131
ngOnChanges(): void {
134132
this.goingToWorkOnThis = this.entryToEdit ? this.entryToEdit.running : false;
135133
this.shouldRestartEntry = false;

0 commit comments

Comments
 (0)