Fix error in the Loan charge reload after actions

This commit is contained in:
Jose Alberto Hernandez
2022-11-03 08:08:58 -06:00
parent f8f669cab6
commit 703c313a95
2 changed files with 7 additions and 4 deletions
@@ -172,8 +172,8 @@ export class ViewChargeComponent {
*/
private reload() {
const clientId = this.loansAccountData.clientId;
const url: string = this.router.url.replace(`/${this.chargeData.id}`, '');
this.router.navigateByUrl(`/clients/${clientId}/loansaccounts`, {skipLocationChange: true})
const url: string = this.router.url;
this.router.navigateByUrl(`/clients/${clientId}/loans-accounts`, { skipLocationChange: true })
.then(() => this.router.navigate([url]));
}