Skip to content

Commit

Permalink
refresh button
Browse files Browse the repository at this point in the history
  • Loading branch information
ap0nia committed Oct 19, 2023
1 parent b376246 commit 1034bcc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function RightPane() {
{RightPaneStore.getDoDisplaySearch() ? (
<SearchForm toggleSearch={toggleSearch} />
) : (
<CourseRenderPane key={key} />
<CourseRenderPane key={key} id={key} />
)}
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function flattenSOCObject(SOCObject: WebsocAPIResponse): (WebsocSchool | WebsocD

return accumulator;
}, []);
};
}
const RecruitmentBanner = () => {
const [bannerVisibility, setBannerVisibility] = React.useState<boolean>(true);

Expand Down Expand Up @@ -135,7 +135,7 @@ const SectionTableWrapped = (
return <div>{component}</div>;
};

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());
Expand Down Expand Up @@ -203,7 +203,7 @@ export function CourseRenderPane() {

useEffect(() => {
loadCourses();
}, []);
}, [props.id]);

useEffect(() => {
const updateScheduleNames = () => {
Expand Down

0 comments on commit 1034bcc

Please sign in to comment.