summaryrefslogtreecommitdiff
path: root/client/containers/fileLink.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/containers/fileLink.js')
-rw-r--r--client/containers/fileLink.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/containers/fileLink.js b/client/containers/fileLink.js
index 22834d8..ad82f75 100644
--- a/client/containers/fileLink.js
+++ b/client/containers/fileLink.js
@@ -12,6 +12,7 @@ const mapStateToProps = (state, ownProps) => ({
const mapDispatchToProps = (dispatch, ownProps) => ({
onClick: () => {
+ if (! ownProps.file) return
switch (ownProps.file.type) {
case 'audio':
let file = ownProps.file