Skip to content

Commit

Permalink
fix(router-store): set undefined for unserializable route title (#3593)
Browse files Browse the repository at this point in the history
Closes #3495
  • Loading branch information
markostanimirovic authored Sep 30, 2022
1 parent 0a4d2dd commit 8eb4001
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 8eb4001

Please sign in to comment.