Skip to content

Commit 1101288

Browse files
committed
fix: handle empty category error in list page
1 parent 73844f8 commit 1101288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/home/list/list.page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class ListPage implements OnInit {
3131
return EMPTY;
3232
}
3333
return this.manService.getVideoList().pipe(map(list => {
34-
return list?.years[year].map(course => ({
34+
return list?.years[year]?.map(course => ({
3535
...course,
3636
link: ['/', 'home', 'course', String(course.id)]
3737
})) ?? [];

0 commit comments

Comments
 (0)