mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-06 18:31:00 +00:00
Fixed published course editing
This commit is contained in:
parent
0c5ac0d942
commit
eaa2b77e06
@ -97,7 +97,7 @@ const PublishedCourseForm = ({ course }) => {
|
|||||||
|
|
||||||
// Update course in database
|
// Update course in database
|
||||||
await axios.put(`/api/courses/${course.d}`, {
|
await axios.put(`/api/courses/${course.d}`, {
|
||||||
price: isPaidCourse ? price : 0,
|
price: isPaidCourse ? Number(price) : 0,
|
||||||
lessons: lessons.map(lesson => ({
|
lessons: lessons.map(lesson => ({
|
||||||
resourceId: lesson.d,
|
resourceId: lesson.d,
|
||||||
draftId: null,
|
draftId: null,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user