diff --git a/packages/module/src/LogViewer/LogViewerRow.tsx b/packages/module/src/LogViewer/LogViewerRow.tsx index 5d72a5c..01be88f 100644 --- a/packages/module/src/LogViewer/LogViewerRow.tsx +++ b/packages/module/src/LogViewer/LogViewerRow.tsx @@ -1,5 +1,4 @@ import React, { memo, useContext } from 'react'; -import ReactDOMServer from 'react-dom/server'; import { LOGGER_LINE_NUMBER_INDEX_DELTA } from './utils/constants'; import { css } from '@patternfly/react-styles'; import styles from '@patternfly/react-styles/css/components/LogViewer/log-viewer'; @@ -51,16 +50,10 @@ export const LogViewerRow: React.FunctionComponent = memo(({ composedString.push(str); } else { const splitString = str.split(regEx); - splitString.forEach((substr, newIndex) => { + splitString.forEach((substr) => { if (substr.match(regEx)) { matchCounter += 1; - composedString.push( - ReactDOMServer.renderToString( - - {substr} - - ) - ); + composedString.push(`${substr}`); } else { composedString.push(escapeTextForHtml(substr)); }