diff --git a/src/pages/LogsPage/LogsTerminal.tsx b/src/pages/LogsPage/LogsTerminal.tsx index d02e617f..96753db4 100644 --- a/src/pages/LogsPage/LogsTerminal.tsx +++ b/src/pages/LogsPage/LogsTerminal.tsx @@ -33,13 +33,7 @@ const fetchMoreData = (): Promise => { }) } - -const LogsTerminal = ({ - windowWidth, - timestamps, - searchInput, - -}: LogsTerminalProps) => { +const LogsTerminal = ({ windowWidth, timestamps, searchInput }: LogsTerminalProps) => { const [data, setData] = useState([]) const [loadedIndexes, setLoadedIndexes] = useState<{ [key: number]: boolean }>({}) const listRef = useRef(null) @@ -133,6 +127,8 @@ const LogsTerminal = ({ {({ index, style }) => { const highlight = searchInput && data[index].description.split(' ').includes(searchInput) + ? true + : false // now we only check for the existing text at the moment // I have to move this statemant in the terminalRow component return (