summaryrefslogtreecommitdiff
path: root/app/client/common/fileList.component.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-02 13:40:43 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-02 13:40:43 +0200
commit015c9b3e7ec8b20308fc604d925a6e9c188aa42e (patch)
tree54dab9950e6dd73e1333f2e080cb123d4c1d9c1e /app/client/common/fileList.component.js
parenta6a529a5757417906f6df60ca7557fac3a380966 (diff)
pull in proxy from stone island
Diffstat (limited to 'app/client/common/fileList.component.js')
-rw-r--r--app/client/common/fileList.component.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/client/common/fileList.component.js b/app/client/common/fileList.component.js
index ece77ae..87384b6 100644
--- a/app/client/common/fileList.component.js
+++ b/app/client/common/fileList.component.js
@@ -12,7 +12,7 @@ class FileList extends Component {
}
render(){
const { files, linkFiles, title, onClick, className="" } = this.props
- if (!files.length) return null
+ if (!files || !files.length) return null
let fields = this.props.fields || defaultFields
if (typeof fields === 'string') {
fields = new Set(fields.split(' '))