Pass sdHash into FileTile on Discover page

This commit is contained in:
Alex Liebowitz 2017-01-20 23:59:07 -05:00
parent 9b68f71199
commit 3e33b5a2e8

View file

@ -43,11 +43,11 @@ var SearchResults = React.createClass({
render: function() { render: function() {
var rows = [], var rows = [],
seenNames = {}; //fix this when the search API returns claim IDs seenNames = {}; //fix this when the search API returns claim IDs
this.props.results.forEach(function({name}) { this.props.results.forEach(function({name, value}) {
if (!seenNames[name]) { if (!seenNames[name]) {
seenNames[name] = name; seenNames[name] = name;
rows.push( rows.push(
<FileTile key={name} name={name} /> <FileTile key={name} name={name} sdHash={value.sources.lbry_sd_hash} />
); );
} }
}); });