Skip to content

Commit

Permalink
Show public, own and pinned courses without selecting semester (#1085)
Browse files Browse the repository at this point in the history
* Show public, own and pinned courses without selecting semester

* lint fix
  • Loading branch information
joschahenningsen authored Jul 18, 2023
1 parent ede41ef commit 4a426b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/ts/views/home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ class PageState {
constructor(url: URL) {
this.url = url;
this.term = url.searchParams.get("term") ?? undefined;
this.year = +url.searchParams.get("year");
this.year = +url.searchParams.get("year") ?? undefined;
if (this.year === 0) {
this.year = undefined;
}
this.slug = url.searchParams.get("slug") ?? undefined;
this.view = url.searchParams.get("view") ?? View.Main;
}
Expand Down

0 comments on commit 4a426b6

Please sign in to comment.