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 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.