diff options
Diffstat (limited to 'app/client/common')
| -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'> |
