mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-04-19 10:51:20 +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
|
||||
await axios.put(`/api/courses/${course.d}`, {
|
||||
price: isPaidCourse ? price : 0,
|
||||
price: isPaidCourse ? Number(price) : 0,
|
||||
lessons: lessons.map(lesson => ({
|
||||
resourceId: lesson.d,
|
||||
draftId: null,
|
||||
|
Loading…
x
Reference in New Issue
Block a user