From 9929edffc091f78e3a5c05ab7dd8a08ff32fc5c4 Mon Sep 17 00:00:00 2001 From: swve Date: Thu, 28 Nov 2024 22:20:48 +0100 Subject: [PATCH] fix: Couldn't update course's details when it is in "users only" access mode #389 --- .../Pages/Course/EditCourseGeneral/EditCourseGeneral.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/components/Dashboard/Pages/Course/EditCourseGeneral/EditCourseGeneral.tsx b/apps/web/components/Dashboard/Pages/Course/EditCourseGeneral/EditCourseGeneral.tsx index e8c8cbf4..e1403d1c 100644 --- a/apps/web/components/Dashboard/Pages/Course/EditCourseGeneral/EditCourseGeneral.tsx +++ b/apps/web/components/Dashboard/Pages/Course/EditCourseGeneral/EditCourseGeneral.tsx @@ -51,7 +51,7 @@ function EditCourseGeneral(props: EditCourseStructureProps) { about: courseStructure?.about || '', learnings: courseStructure?.learnings || '', tags: courseStructure?.tags || '', - public: courseStructure?.public || '', + public: courseStructure?.public || false, }, validate, onSubmit: async values => {