Filter NSFW search results (will add option to display them later)
This commit is contained in:
parent
f78c6a65bb
commit
0ebbe4427b
1 changed files with 6 additions and 4 deletions
|
@ -37,10 +37,12 @@ var SearchResults = React.createClass({
|
||||||
render: function() {
|
render: function() {
|
||||||
var rows = [];
|
var rows = [];
|
||||||
this.props.results.forEach(function(result) {
|
this.props.results.forEach(function(result) {
|
||||||
rows.push(
|
if (!result.nsfw) {
|
||||||
<SearchResultRow key={result.name} name={result.name} title={result.title} imgUrl={result.thumbnail}
|
rows.push(
|
||||||
description={result.description} cost_est={result.cost_est} />
|
<SearchResultRow key={result.name} name={result.name} title={result.title} imgUrl={result.thumbnail}
|
||||||
);
|
description={result.description} cost_est={result.cost_est} />
|
||||||
|
);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
return (
|
return (
|
||||||
<div>{rows}</div>
|
<div>{rows}</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue