File tree 1 file changed +2
-3
lines changed
src/plugins/opensearch_dashboards_utils/public/history
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 28
28
* under the License.
29
29
*/
30
30
31
- import React , { Fragment } from 'react' ;
31
+ import React from 'react' ;
32
32
import { History } from 'history' ;
33
33
import { i18n } from '@osd/i18n' ;
34
34
import { EuiLoadingSpinner } from '@elastic/eui' ;
@@ -37,10 +37,9 @@ import ReactDOM from 'react-dom';
37
37
import { ApplicationStart , HttpStart , ToastsSetup } from 'opensearch-dashboards/public' ;
38
38
import { SavedObjectNotFound } from '..' ;
39
39
40
- const ReactMarkdown = React . lazy ( ( ) => import ( 'react-markdown' ) ) ;
41
40
const ErrorRenderer = ( props : { children : string } ) => (
42
41
< React . Suspense fallback = { < EuiLoadingSpinner /> } >
43
- < ReactMarkdown renderers = { { root : Fragment } } { ... props } / >
42
+ < span > { props . children } </ span >
44
43
</ React . Suspense >
45
44
) ;
46
45
You can’t perform that action at this time.
0 commit comments