fixed undefined file extension on asset preview

This commit is contained in:
bill bittner 2018-02-02 13:06:28 -08:00
parent 7b4b5da428
commit ba465fdfb7
2 changed files with 2 additions and 1 deletions

View file

@ -1,5 +1,5 @@
import React from 'react';
import { Link } from 'react-router-dom'
import { Link } from 'react-router-dom';
const AssetPreview = ({ name, claimId, fileExt, contentType }) => {
const directSourceLink = `${claimId}/${name}.${fileExt}`;

View file

@ -57,6 +57,7 @@ class ChannelClaimsDisplay extends React.Component {
{this.state.claims.map((claim, index) => <AssetPreview
name={claim.name}
claimId={claim.claimId}
fileExt={claim.fileExt}
contentType={claim.contentType}
key={index}
/>)}