Skip to content

Commit

Permalink
fix(router-store): set undefined for unserializable route title
Browse files Browse the repository at this point in the history
  • Loading branch information
markostanimirovic committed Sep 29, 2022
1 parent e36dd94 commit e6186f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/router-store/src/serializers/minimal_serializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ export class MinimalRouterStateSerializer
pathMatch: route.routeConfig.pathMatch,
redirectTo: route.routeConfig.redirectTo,
outlet: route.routeConfig.outlet,
title: route.routeConfig.title,
title:
typeof route.routeConfig.title === 'string'
? route.routeConfig.title
: undefined,
}
: null,
queryParams: route.queryParams,
Expand Down

0 comments on commit e6186f7

Please sign in to comment.