fix: dont encode with uri twice (#10)

This commit is contained in:
connorhaugh
2022-01-27 12:39:19 -05:00
committed by GitHub
parent d8c6b8dddd
commit 2f931b5bdb

View File

@@ -36,7 +36,7 @@ export async function fetchUnitById(updateContext, blockId, studioEndpointUrl) {
export async function saveBlock(blockId, blockType, courseId, studioEndpointUrl, content, updateContext) {
const normalizedContent = normalizeContent(blockType, content, blockId, courseId);
const url = `${studioEndpointUrl}/xblock/${encodeURI(blockId)}`;
const url = `${studioEndpointUrl}/xblock/${blockId}`;
const params = [url, normalizedContent];
saveAsync(updateContext, params);
}