From 3362d0a5ad4808617993b904d698eb35cf6cf737 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 4 Jun 2018 20:26:09 +0200 Subject: fix progress --- app/client/common/fileList.component.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/client/common') 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 (
-- cgit v1.2.3-70-g09d2