Skip to content

Commit

Permalink
fix: complete method undefined typeerror (#3174)
Browse files Browse the repository at this point in the history
* complete method typeerror fix

* fixing the complete undefined error

* fix complete method undefined typeerror

* fix complete method undefined error

---------

Co-authored-by: Madhusudan Shekhawat <[email protected]>
  • Loading branch information
Madhusudan092001 and Madhusudan Shekhawat authored Aug 19, 2024
1 parent a195076 commit cb49e6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/fyle/dashboard/tasks/tasks.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export class TasksComponent implements OnInit {
this.loadData$.next(this.loadData$.getValue());
if (event) {
setTimeout(() => {
event.target?.complete();
event.target?.complete?.();
}, 1500);
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/app/fyle/my-advances/my-advances.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export class MyAdvancesPage implements AfterViewChecked {
map(() => {
this.refreshAdvances$.next();
if (event) {
event.target?.complete();
event.target?.complete?.();
}
})
)
Expand Down
2 changes: 1 addition & 1 deletion src/app/fyle/team-advance/team-advance.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class TeamAdvancePage implements AfterViewChecked {
});
});
if (event) {
event.target?.complete();
event.target?.complete?.();
}
}

Expand Down

0 comments on commit cb49e6d

Please sign in to comment.