Make Watch button appear correctly in search results

Wasn't passing in the content type to SearchResultRow
This commit is contained in:
Alex Liebowitz 2016-09-08 04:36:57 -04:00
parent 9a9bed2966
commit 7077b78135

View file

@ -37,9 +37,11 @@ var SearchResults = React.createClass({
var rows = [];
this.props.results.forEach(function(result) {
console.log(result);
var mediaType = lbry.getMediaType(result.value.content_type);
rows.push(
<SearchResultRow key={result.name} name={result.name} title={result.value.title} imgUrl={result.value.thumbnail}
description={result.value.description} cost={result.cost} nsfw={result.value.nsfw} />
description={result.value.description} cost={result.cost} nsfw={result.value.nsfw}
mediaType={mediaType} />
);
});
return (