Skip to content

Commit

Permalink
Fix term selector out of sync
Browse files Browse the repository at this point in the history
  • Loading branch information
tithanayut committed Jul 7, 2023
1 parent 21af010 commit 549a587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/src/modules/CourseSearch/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function CourseSearchPage() {
<MuiStack direction="row" spacing={2} alignItems="center">
<Typography variant="h2">ค้นหาวิชาเรียน</Typography>
{isSmUp && (
<Select defaultValue={`${academicYear}/${semester}`} onChange={handleChange}>
<Select value={`${academicYear}/${semester}`} onChange={handleChange}>
{termOptions.map(({ academicYear, semester, label }) => (
<MenuItem key={`${academicYear}/${semester}`} value={`${academicYear}/${semester}`}>
{label}
Expand Down

0 comments on commit 549a587

Please sign in to comment.