diff --git a/src/renderers/Form/DiffEditor.tsx b/src/renderers/Form/DiffEditor.tsx index 96a9b7e2c..6da90ab28 100644 --- a/src/renderers/Form/DiffEditor.tsx +++ b/src/renderers/Form/DiffEditor.tsx @@ -36,7 +36,7 @@ export interface DiffControlSchema extends FormBaseControl { } function loadComponent(): Promise { - return import('../../components/Editor'); + return import('../../components/Editor').then(item => item.default); } export interface DiffEditorProps diff --git a/src/renderers/Form/RichText.tsx b/src/renderers/Form/RichText.tsx index c534710f1..afe70d4ec 100644 --- a/src/renderers/Form/RichText.tsx +++ b/src/renderers/Form/RichText.tsx @@ -29,8 +29,8 @@ function loadRichText( ): () => Promise { return () => type === 'tinymce' - ? import('../../components/Tinymce') - : import('../../components/RichText'); + ? import('../../components/Tinymce').then(item => item.default) + : import('../../components/RichText').then(item => item.default); } export default class RichTextControl extends React.Component<