mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Log row renderer fix
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
800bc5b821
commit
0a9ad3878b
@ -131,9 +131,8 @@ export class PodLogList extends React.Component<Props> {
|
|||||||
* @param rowIndex index of the log element in logs array
|
* @param rowIndex index of the log element in logs array
|
||||||
* @returns A react element with a row itself
|
* @returns A react element with a row itself
|
||||||
*/
|
*/
|
||||||
getLogRow = (rowIndex: number) => {
|
getLogRow = (item: string, rowIndex: number) => {
|
||||||
const { searchQuery, isActiveOverlay } = searchStore;
|
const { searchQuery, isActiveOverlay } = searchStore;
|
||||||
const item = this.props.logs[rowIndex];
|
|
||||||
const contents: React.ReactElement[] = [];
|
const contents: React.ReactElement[] = [];
|
||||||
const ansiToHtml = (ansi: string) => DOMPurify.sanitize(colorConverter.ansi_to_html(ansi));
|
const ansiToHtml = (ansi: string) => DOMPurify.sanitize(colorConverter.ansi_to_html(ansi));
|
||||||
if (searchQuery) { // If search is enabled, replace keyword with backgrounded <span>
|
if (searchQuery) { // If search is enabled, replace keyword with backgrounded <span>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user