Handle bad recent matches
This commit is contained in:
parent
2d029f1a0f
commit
211949c648
2 changed files with 4 additions and 1 deletions
|
@ -138,7 +138,7 @@ h3 {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
.not-found {
|
.not-found {
|
||||||
opacity: 0.5;
|
opacity: 0.3;
|
||||||
}
|
}
|
||||||
.loading {
|
.loading {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
|
@ -26,6 +26,9 @@ var Recent = React.createClass({
|
||||||
var RecentItem = React.createClass({
|
var RecentItem = React.createClass({
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
|
if (!this.props.item.artwork) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
<div className="col-sm-4 col-xs-6">
|
<div className="col-sm-4 col-xs-6">
|
||||||
<Link to="share" params={this.props.item}><img src={this.props.item.artwork.small} width="100%" /></Link>
|
<Link to="share" params={this.props.item}><img src={this.props.item.artwork.small} width="100%" /></Link>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue