fix: client charges routing and module structure (#1114)

Fixes: #1113
This commit is contained in:
Karan Takalkar
2020-07-15 19:23:57 +05:30
committed by GitHub
parent 2670137564
commit fbe0935154
18 changed files with 47 additions and 27 deletions
@@ -24,7 +24,7 @@ export class ClientChargeViewResolver implements Resolve<Object> {
* @returns {Observable<any>}
*/
resolve(route: ActivatedRouteSnapshot): Observable<any> {
const clientId = route.paramMap.get('clientId');
const clientId = route.parent.parent.parent.paramMap.get('clientId');
const chargeId = route.paramMap.get('chargeId');
return this.clientsService.getSelectedChargeData(clientId, chargeId);
}