Skip to content

Commit

Permalink
fix: add key to review component
Browse files Browse the repository at this point in the history
since filtering by professor has been added, this option can persist if a user
navigates to another page by clicking a course in prereq tree
  • Loading branch information
js0mmer committed Mar 7, 2024
1 parent 1c400a1 commit 1ddf340
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/src/pages/CoursePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const CoursePage: FC = () => {
<h2>🗓️ Schedule of Classes</h2>
</div>
<Divider />
<Schedule key={courseGQLData.id} courseID={courseGQLData.department + ' ' + courseGQLData.courseNumber} />
<Schedule key={id} courseID={courseGQLData.department + ' ' + courseGQLData.courseNumber} />
</div>

<div className="course-page-section">
Expand All @@ -88,7 +88,7 @@ const CoursePage: FC = () => {
<h2>💬 Reviews</h2>
</div>
<Divider />
<Review course={courseGQLData} />
<Review key={id} course={courseGQLData} />
</div>
</div>
</div>
Expand Down

0 comments on commit 1ddf340

Please sign in to comment.