Correct how SD hashes are extracted in SearchResults

This commit is contained in:
Alex Liebowitz 2017-01-10 01:59:32 -05:00
parent f8ae201e76
commit 8a1f0b76b1

View file

@ -42,9 +42,9 @@ var SearchNoResults = React.createClass({
var SearchResults = React.createClass({ var SearchResults = React.createClass({
render: function() { render: function() {
var rows = []; var rows = [];
this.props.results.forEach(function({name, sources, value}) { this.props.results.forEach(function({name, value}) {
rows.push( rows.push(
<FileTile key={name} name={name} sdHash={sources.lbry_sd_hash} metadata={value} /> <FileTile key={name} name={name} sdHash={value.sources.lbry_sd_hash} metadata={value} />
); );
}); });
return ( return (