ensure that content_type exists
This commit is contained in:
parent
22c4f41066
commit
f1b2d0d62d
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ export let FileActions = React.createClass({
|
|||
|
||||
return (
|
||||
<section className="file-actions">
|
||||
{this.props.metadata.content_type.startsWith('video/') ? <WatchLink streamName={this.props.streamName} /> : null}
|
||||
{(this.props.metadata.content_type && this.props.metadata.content_type.startsWith('video/')) ? <WatchLink streamName={this.props.streamName} /> : null}
|
||||
{this.state.fileInfo !== null || this.state.fileInfo.isMine ?
|
||||
<div className="button-container">{linkBlock}</div>
|
||||
: null}
|
||||
|
|
Loading…
Reference in a new issue