Load XBlockToXModuleShim for Studio Tabs page

The studio tabs page had a race condition when loading many static tabs.
The result was that those tabs couldn't be deleted. By requiring the
`xmodule` module, we force the EditTabsFactory to load
XBlockToXModuleShim before it's needed.
This commit is contained in:
Calen Pennington
2020-04-16 15:21:43 -04:00
parent cb0e6f2a4b
commit 9e620d3bec

View File

@@ -4,6 +4,7 @@ import * as xmoduleLoader from 'xmodule';
import './base';
import 'cms/js/main';
import 'xblock/cms.runtime.v1';
import 'xmodule/js/src/xmodule'; // Force the XBlockToXModuleShim to load for Static Tabs
'use strict';
export default function EditTabsFactory(courseLocation, explicitUrl) {