react-lazylog icon indicating copy to clipboard operation
react-lazylog copied to clipboard

Highlight Error

Open pesehr opened this issue 7 years ago • 0 comments
trafficstars

I've got this:

Uncaught TypeError: Cannot read property 'includes' of undefined
    at S.value [as renderRow] (index.js?7e23:1)
    at rowRenderer (index.js?7e23:1)
    at List._this._cellRenderer (List.js?0525:82)
    at defaultCellRangeRenderer (defaultCellRangeRenderer.js?614f:107)
    at Grid._calculateChildrenToRender (Grid.js?0f6f:871)
    at Grid.componentWillUpdate (Grid.js?0f6f:669)
    at updateClassInstance (react-dom.development.js?cada:6604)
    at updateClassComponent (react-dom.development.js?cada:7848)
    at beginWork (react-dom.development.js?cada:8225)
    at performUnitOfWork (react-dom.development.js?cada:10224)

from line: 419 index.js

    return (
      <Line
        className={lineClassName}
        highlightClassName={highlightLineClassName}
        rowHeight={rowHeight}
        style={style}
        key={key}
        number={number}
        formatPart={formatPart}
        selectable={selectableLines}
        highlight={highlight.includes(number)}
        onLineNumberClick={this.handleHighlight}
        data={ansiparse(decode(lines.get(index)))}
      />

implementation:

 <LazyLog
          rowCount={10}
          highlight={[1,2,3]}
          url="https://taskcluster-artifacts.net/XEyu7ICDSsGZdSAwPs9Wnw/0/public/logs/live_backing.log"/>

pesehr avatar Apr 20 '18 10:04 pesehr