diff --git a/apps/antalmanac/src/components/RightPane/CoursePane/CoursePaneRoot.tsx b/apps/antalmanac/src/components/RightPane/CoursePane/CoursePaneRoot.tsx
index f953dda83..46f498fd0 100644
--- a/apps/antalmanac/src/components/RightPane/CoursePane/CoursePaneRoot.tsx
+++ b/apps/antalmanac/src/components/RightPane/CoursePane/CoursePaneRoot.tsx
@@ -66,7 +66,7 @@ function RightPane() {
{RightPaneStore.getDoDisplaySearch() ? (
) : (
-
+
)}
);
diff --git a/apps/antalmanac/src/components/RightPane/CoursePane/CourseRenderPane.tsx b/apps/antalmanac/src/components/RightPane/CoursePane/CourseRenderPane.tsx
index c812b3d18..293ff4443 100644
--- a/apps/antalmanac/src/components/RightPane/CoursePane/CourseRenderPane.tsx
+++ b/apps/antalmanac/src/components/RightPane/CoursePane/CourseRenderPane.tsx
@@ -40,7 +40,7 @@ function flattenSOCObject(SOCObject: WebsocAPIResponse): (WebsocSchool | WebsocD
return accumulator;
}, []);
-};
+}
const RecruitmentBanner = () => {
const [bannerVisibility, setBannerVisibility] = React.useState(true);
@@ -135,7 +135,7 @@ const SectionTableWrapped = (
return {component}
;
};
-export function CourseRenderPane() {
+export function CourseRenderPane(props: { id?: number }) {
const [loading, setLoading] = useState(true);
const [error, setError] = useState(false);
const [scheduleNames, setScheduleNames] = useState(AppStore.getScheduleNames());
@@ -203,7 +203,7 @@ export function CourseRenderPane() {
useEffect(() => {
loadCourses();
- }, []);
+ }, [props.id]);
useEffect(() => {
const updateScheduleNames = () => {