guillermoscript / lms-front

AI Powered LMS app for the future of learning
https://lms-front-two.vercel.app
1 stars 0 forks source link

Refactor editLessonsAction to include course_id parameter #70

Closed guillermoscript closed 2 months ago

guillermoscript commented 2 months ago

This refactor adds the course_id parameter to the editLessonsAction function in the actions/dashboard/lessonsAction.ts file. The course_id is extracted from the FormData and used to construct the redirect URL after successfully updating a lesson. This refactor ensures that the correct course ID is included in the redirect URL, improving the user experience.

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lms-front ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 24, 2024 0:03am