From 007059ed2483009043b5569e4d95049139878798 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 21 Jul 2017 05:31:27 +0200 Subject: html.. --- client/containers/fileLink.js | 1 + 1 file changed, 1 insertion(+) (limited to 'client/containers/fileLink.js') 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 -- cgit v1.2.3-70-g09d2