Skip to content

Commit

Permalink
fix(AdvancedRoute): fixed undefined route on params$
Browse files Browse the repository at this point in the history
  • Loading branch information
alisahinozcelik committed May 14, 2021
1 parent f3e97af commit 2154f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ng-utils/advanced-route/advanced-route.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class AdvancedRouteService {
* Emits route segments ()
*/
public segments$ = this.activeRoutes$.pipe(
map(routes => routes.map(r => r.snapshot)),
map(routes => routes.map(r => r.snapshot).filter(isTruthy)),
map(routes => routes.map(r => r.url[0])),
map(segments => segments.filter(s => !!s)),
map(segments => segments.map(s => s.path)),
Expand Down

0 comments on commit 2154f7a

Please sign in to comment.