Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
fix table-row highlight. closes #407
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed May 31, 2017
1 parent 8ae5dc0 commit 770e5b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions elements/table-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ var networkStyles = css`

module.exports = Row

function Row ({ highlight }) {
function Row () {
var hexContent = HexContent()
var finderButton = FinderButton()
var linkButton = LinkButton()
Expand All @@ -118,7 +118,7 @@ function Row ({ highlight }) {
return component

function render () {
var { dat, state, emit } = this.props
var { dat, state, emit, highlight } = this.props
if (dat instanceof Error) return errorRow(dat, emit, deleteButton)

var stats = dat.stats
Expand Down
4 changes: 2 additions & 2 deletions elements/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ function TableRows () {
return row.render({ dat, state, emit })
} else {
var highlight = !initialLoad
var newRow = TableRow({ highlight })
var newRow = TableRow()
elements[key] = newRow
return newRow.render({ dat, state, emit })
return newRow.render({ dat, state, emit, highlight })
}
})

Expand Down

0 comments on commit 770e5b1

Please sign in to comment.