From a53e9418e259dc2765d21cb5abdfcc8f5a7fb739 Mon Sep 17 00:00:00 2001 From: The Anh Nguyen Date: Fri, 18 Oct 2024 19:01:41 +0200 Subject: [PATCH] fix: fix bad request made to course updates endpoint --- apps/web/components/Contexts/CourseContext.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web/components/Contexts/CourseContext.tsx b/apps/web/components/Contexts/CourseContext.tsx index d33bf38d..5bfaea91 100644 --- a/apps/web/components/Contexts/CourseContext.tsx +++ b/apps/web/components/Contexts/CourseContext.tsx @@ -17,7 +17,9 @@ export function CourseProvider({ children, courseuuid }: any) { ); const initialState = { - courseStructure: {}, + courseStructure: { + course_uuid: courseuuid, + }, courseOrder: {}, isSaved: true, isLoading: true