Skip to content

Commit

Permalink
fix: Allow frontend to build
Browse files Browse the repository at this point in the history
  • Loading branch information
mathhulk committed Jun 25, 2024
1 parent 6b54422 commit 48acfe9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions frontend/src/app/Catalog/Class/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const views = [
];

interface ClassProps {
partialCurrentCourse: ICourse | null;
partialCurrentCourse: ICourse;
currentSemester: Semester;
currentYear: number;
currentClassNumber: string;
Expand Down Expand Up @@ -87,9 +87,9 @@ export default function Class({

const partialCurrentClass = useMemo(
() =>
partialCurrentCourse?.classes.find(
partialCurrentCourse.classes.find(
(class_) => class_.number === currentClassNumber
),
) as IClass,
[partialCurrentCourse, currentClassNumber]
);

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/Catalog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function Catalog() {
/>
{currentClassNumber && currentCourseNumber && currentSubject ? (
<Class
partialCurrentCourse={partialCurrentCourse}
partialCurrentCourse={partialCurrentCourse ?? ({} as ICourse)}
currentSemester={currentSemester}
currentYear={currentYear}
currentClassNumber={currentClassNumber!}
Expand Down

0 comments on commit 48acfe9

Please sign in to comment.