added default note for channels with zero claims
This commit is contained in:
parent
b1fb65b1ec
commit
4672a72d02
2 changed files with 20 additions and 18 deletions
|
@ -25,7 +25,7 @@ class ChannelClaimsDisplay extends React.Component {
|
|||
const { channel: { claimsData: { claims, currentPage, totalPages } } } = this.props;
|
||||
return (
|
||||
<div className="row row--tall">
|
||||
{claims &&
|
||||
{(claims.length > 0) ? (
|
||||
<div>
|
||||
{claims.map((claim, index) => <AssetPreview
|
||||
name={claim.name}
|
||||
|
@ -43,7 +43,9 @@ class ChannelClaimsDisplay extends React.Component {
|
|||
}
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
) : (
|
||||
<p>There are no claims in this channel</p>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ const mapStateToProps = ({ show }) => {
|
|||
const requestExtension = show.request.data.extension;
|
||||
// select request
|
||||
const previousRequest = show.assetRequests[show.request.id] || null;
|
||||
// select asset infogit
|
||||
// select asset info
|
||||
let asset;
|
||||
if (previousRequest) {
|
||||
const assetKey = `a#${previousRequest.name}#${previousRequest.claimId}`; // note: just store this in the request
|
||||
|
|
Loading…
Reference in a new issue