Skip to content

Commit 06469bd

Browse files
Wrap error renderer in span (#7265) (#7290)
(cherry picked from commit a34389e) Signed-off-by: Craig Perkins <cwperx@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 33d07a2 commit 06469bd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/plugins/opensearch_dashboards_utils/public/history/redirect_when_missing.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* under the License.
2929
*/
3030

31-
import React, { Fragment } from 'react';
31+
import React from 'react';
3232
import { History } from 'history';
3333
import { i18n } from '@osd/i18n';
3434
import { EuiLoadingSpinner } from '@elastic/eui';
@@ -37,10 +37,9 @@ import ReactDOM from 'react-dom';
3737
import { ApplicationStart, HttpStart, ToastsSetup } from 'opensearch-dashboards/public';
3838
import { SavedObjectNotFound } from '..';
3939

40-
const ReactMarkdown = React.lazy(() => import('react-markdown'));
4140
const ErrorRenderer = (props: { children: string }) => (
4241
<React.Suspense fallback={<EuiLoadingSpinner />}>
43-
<ReactMarkdown renderers={{ root: Fragment }} {...props} />
42+
<span>{props.children}</span>
4443
</React.Suspense>
4544
);
4645

0 commit comments

Comments
 (0)