Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: TTL-910 modify ngOnChange feature
  • Loading branch information
Santiago220991 committed Aug 3, 2023
commit a71577be0f26c09c4492adc1ee432d013efa6baf
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,9 @@ export class TimeRangeFormComponent implements OnInit, OnChanges {
this.setInitialDataOnScreen();
}

ngOnChanges(changes: SimpleChanges){
if (!changes.userId.firstChange){
this.onSubmit();
}
if (!changes.projectId.firstChange){
this.onSubmit();
}
if (!changes.activityId.firstChange){
ngOnChanges(changes: SimpleChanges) {
const firstChange = Object.values(changes)[0].firstChange;
if (!firstChange) {
this.onSubmit();
}
}
Expand Down