Web: Doceditor: fixed loading mf components
This commit is contained in:
parent
1195dc74ca
commit
923c4b0bc2
@ -22,11 +22,18 @@ function useMfScripts() {
|
|||||||
|
|
||||||
React.useEffect(async () => {
|
React.useEffect(async () => {
|
||||||
if (filesReady && studioReady) {
|
if (filesReady && studioReady) {
|
||||||
const [toastr, filesUtils, SharingDialog] = await Promise.all([
|
// const [toastr, filesUtils, SharingDialog] = await Promise.all([
|
||||||
loadComponent(STUDIO_SCOPE, "./toastr")(),
|
// loadComponent(STUDIO_SCOPE, "./toastr")(),
|
||||||
loadComponent(FILES_SCOPE, "./utils")(),
|
// loadComponent(FILES_SCOPE, "./utils")(),
|
||||||
loadComponent(FILES_SCOPE, "./SharingDialog")(),
|
// loadComponent(FILES_SCOPE, "./SharingDialog")(),
|
||||||
]);
|
// ]);
|
||||||
|
|
||||||
|
const toastr = await loadComponent(STUDIO_SCOPE, "./toastr")();
|
||||||
|
const SharingDialog = await loadComponent(
|
||||||
|
FILES_SCOPE,
|
||||||
|
"./SharingDialog"
|
||||||
|
)();
|
||||||
|
const filesUtils = await loadComponent(FILES_SCOPE, "./utils")();
|
||||||
|
|
||||||
window.toastr = toastr.default;
|
window.toastr = toastr.default;
|
||||||
window.filesUtils = filesUtils;
|
window.filesUtils = filesUtils;
|
||||||
|
Loading…
Reference in New Issue
Block a user