diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-04 20:26:09 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-04 20:26:09 +0200 |
| commit | 3362d0a5ad4808617993b904d698eb35cf6cf737 (patch) | |
| tree | ac4a1f4d76cd4fe2e81b2bc756f077798928b88e /app/client/common/fileList.component.js | |
| parent | 2289265cdf7fda841e83882c602f3020c75de37c (diff) | |
fix progress
Diffstat (limited to 'app/client/common/fileList.component.js')
| -rw-r--r-- | app/client/common/fileList.component.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/client/common/fileList.component.js b/app/client/common/fileList.component.js index 0e6c402..80de6b2 100644 --- a/app/client/common/fileList.component.js +++ b/app/client/common/fileList.component.js @@ -19,7 +19,7 @@ export const FileList = props => { } = props const { mapFn, sortFn } = util.sort.orderByFn(orderBy) const fileList = (files || []) - // .filter(f => !!f) + .filter(f => !!f) .map(mapFn) .sort(sortFn) .map(pair => { @@ -31,7 +31,7 @@ export const FileList = props => { onClick={onClick} /> }) - if (! (files && files.length)) { + if (!fileList || !fileList.length) { return ( <div className={'rows ' + className}> <div class='row heading'> |
