fixed undefined file extension on asset preview
This commit is contained in:
parent
7b4b5da428
commit
ba465fdfb7
2 changed files with 2 additions and 1 deletions
|
@ -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}`;
|
||||
|
|
|
@ -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}
|
||||
/>)}
|
||||
|
|
Loading…
Add table
Reference in a new issue