Skip to content

Refactor editLessonsAction to include course_id parameter #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

guillermoscript
Copy link
Owner

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.

This commit 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.
Copy link

vercel bot commented Jun 24, 2024

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

@guillermoscript guillermoscript added the fix a fix for some bug label Jun 24, 2024
@guillermoscript guillermoscript merged commit c108ff6 into master Jun 24, 2024
2 of 3 checks passed
@guillermoscript guillermoscript deleted the 69-after-successful-responses-we-should-redirect-user-out-of-the-form branch June 24, 2024 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix a fix for some bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

After successful responses, we should redirect user out of the form
1 participant