Skip to content

Commit

Permalink
Maybe fix for errors in build in code that hasn't changed?
Browse files Browse the repository at this point in the history
  • Loading branch information
allomanta committed Nov 24, 2024
1 parent 0211ba4 commit 8ee5abb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions IguideME.Web/Frontend/src/mocks/courses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { MOCK_STUDENTS } from './users';
export const courseHandlers = [
http.get('/api/courses/:courseId', ({ params }) => {
const courseId = params.courseId;
const course = exampleCourses.find((course) => course.id === +courseId);
const course = exampleCourses.find((course) => course.id === +courseId!);

if (!course) return new HttpResponse(null, { status: 404 });
return HttpResponse.json<Course>(course);
Expand All @@ -18,7 +18,7 @@ export const courseHandlers = [

http.get('/api/courses/:courseId/students', ({ params }) => {
const courseId = params.courseId;
const course = exampleCourses.find((course) => course.id === +courseId);
const course = exampleCourses.find((course) => course.id === +courseId!);
if (!course) return new HttpResponse(null, { status: 404 });

return HttpResponse.json<User[]>(MOCK_STUDENTS);
Expand Down
2 changes: 1 addition & 1 deletion IguideME.Web/Frontend/src/mocks/grades.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const gradeHandlers = [

if (!type) return HttpResponse.json();

return HttpResponse.json<Array<UserGrade>>(getContentGrades(id, type));
return HttpResponse.json<Array<UserGrade>>(getContentGrades(id!, type));
}),

http.get('/tiles/*/grades/*', ({ params }) => {
Expand Down
4 changes: 2 additions & 2 deletions charts/iguideme/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: iguideme
description: IguideME
type: application
version: 0.3.240
appVersion: "0.3.240"
version: 0.3.241
appVersion: "0.3.241"

0 comments on commit 8ee5abb

Please sign in to comment.