Pass sdHash into FileTile on Discover page
This commit is contained in:
parent
9b68f71199
commit
3e33b5a2e8
1 changed files with 2 additions and 2 deletions
|
@ -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} />
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue