Skip to content

Commit

Permalink
fixup! fixup! feat: generalize delete modal
Browse files Browse the repository at this point in the history
  • Loading branch information
navinkarkera committed Dec 11, 2023
1 parent a53007a commit 8dbc4fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/course-outline/CourseOutline.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ describe('<CourseOutline />', () => {
const section = courseOutlineIndexMock.courseStructure.childInfo.children[0];
const newReleaseDate = '2025-08-10T10:00:00Z';
axiosMock
.onPost(getUpdateCourseSectionApiUrl(section.id), {
.onPost(getCourseItemApiUrl(section.id), {
id: section.id,
data: null,
metadata: {
Expand Down
2 changes: 1 addition & 1 deletion src/course-outline/data/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export async function publishCourseSection(sectionId) {
*/
export async function configureCourseSection(sectionId, isVisibleToStaffOnly, startDatetime) {
const { data } = await getAuthenticatedHttpClient()
.post(getUpdateCourseSectionApiUrl(sectionId), {
.post(getCourseItemApiUrl(sectionId), {
publish: 'republish',
metadata: {
// The backend expects metadata.visible_to_staff_only to either true or null
Expand Down

0 comments on commit 8dbc4fe

Please sign in to comment.