We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ece69c commit db8a0aaCopy full SHA for db8a0aa
1 file changed
src/course-unit/xblock-container-iframe/index.tsx
@@ -73,8 +73,8 @@ const XBlockContainerIframe: FC<XBlockContainerIframeProps> = ({
73
const onXBlockSave = useCallback(/* istanbul ignore next */ () => {
74
closeXBlockEditorModal();
75
closeVideoSelectorModal();
76
- sendMessageToIframe(messageTypes.refreshXBlock, null);
77
- }, [closeXBlockEditorModal, closeVideoSelectorModal, sendMessageToIframe]);
+ sendMessageToIframe(messageTypes.completeXBlockEditing, { locator: newBlockId });
+ }, [closeXBlockEditorModal, closeVideoSelectorModal, sendMessageToIframe, newBlockId]);
78
79
const handleEditXBlock = useCallback((type: string, id: string) => {
80
setBlockType(type);
0 commit comments