diff options
Diffstat (limited to 'app/client/common/fileList.component.js')
| -rw-r--r-- | app/client/common/fileList.component.js | 2 |
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(' ')) |
