refactor: after rebase
This commit is contained in:
committed by
Adolfo R. Brandes
parent
deb76a0609
commit
f1f036576e
@@ -1,4 +1,5 @@
|
||||
import { logError, logInfo } from '@edx/frontend-platform/logging';
|
||||
import { camelCaseObject } from '@edx/frontend-platform';
|
||||
|
||||
import {
|
||||
hideProcessingNotification,
|
||||
@@ -236,8 +237,9 @@ export function createNewCourseXBlock(body, callback, blockId) {
|
||||
try {
|
||||
await createCourseXblock(body).then(async (result) => {
|
||||
if (result) {
|
||||
const formattedResult = camelCaseObject(result);
|
||||
if (body.category === 'vertical') {
|
||||
const courseSectionVerticalData = await getCourseSectionVerticalData(result.locator);
|
||||
const courseSectionVerticalData = await getCourseSectionVerticalData(formattedResult.locator);
|
||||
dispatch(fetchCourseSectionVerticalDataSuccess(courseSectionVerticalData));
|
||||
}
|
||||
const courseVerticalChildrenData = await getCourseVerticalChildren(blockId);
|
||||
|
||||
Reference in New Issue
Block a user