Skip to content

Commit 994cc76

Browse files
committed
gracefully handles null readme
1 parent dbc2949 commit 994cc76

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/roadmap/roadmap.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ export class RoadmapComponent {
4343
items.map(item => ({
4444
...item,
4545
readme: undefined,
46-
readmeHtml: marked(item.readme),
46+
readmeHtml: item.readme
47+
? marked(item.readme)
48+
: '<em>(no readme)</em>',
4749
})),
4850
)
4951
.catch(err => (console.error(err) as any) || null),

0 commit comments

Comments
 (0)