From f1b2d0d62d4fc89e15a779ce0d831723196b16f4 Mon Sep 17 00:00:00 2001 From: Job Evers-Meltzer Date: Tue, 17 Jan 2017 21:57:16 -0600 Subject: [PATCH] ensure that content_type exists --- js/component/file-actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/component/file-actions.js b/js/component/file-actions.js index df203a467..ec4a14e06 100644 --- a/js/component/file-actions.js +++ b/js/component/file-actions.js @@ -191,7 +191,7 @@ export let FileActions = React.createClass({ return (
- {this.props.metadata.content_type.startsWith('video/') ? : null} + {(this.props.metadata.content_type && this.props.metadata.content_type.startsWith('video/')) ? : null} {this.state.fileInfo !== null || this.state.fileInfo.isMine ?
{linkBlock}
: null}