mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-31 17:31:27 +00:00
Make search results use new standard "title" field
This commit is contained in:
parent
2834bc01f4
commit
cdc31b3006
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ var SearchResults = React.createClass({
|
||||||
console.log('made it here');
|
console.log('made it here');
|
||||||
this.props.results.forEach(function(result) {
|
this.props.results.forEach(function(result) {
|
||||||
rows.push(
|
rows.push(
|
||||||
<SearchResultRow name={result.name} title={result.stream_name} imgUrl={result.thumbnail}
|
<SearchResultRow name={result.name} title={result.title} imgUrl={result.thumbnail}
|
||||||
description={result.description} cost_est={result.cost_est} />
|
description={result.description} cost_est={result.cost_est} />
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@ -149,7 +149,7 @@ var FeaturedContentItem = React.createClass({
|
||||||
lbry.resolveName(this.props.name, (metadata) => {
|
lbry.resolveName(this.props.name, (metadata) => {
|
||||||
this.setState({
|
this.setState({
|
||||||
metadata: metadata,
|
metadata: metadata,
|
||||||
title: metadata.name || metadata.stream_name || ('lbry://' + this.props.name),
|
title: metadata.title || ('lbry://' + this.props.name),
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue