diff options
Diffstat (limited to 'app/client/common')
| -rw-r--r-- | app/client/common/fileList.component.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/client/common/fileList.component.js b/app/client/common/fileList.component.js index b4b5430..0b69b62 100644 --- a/app/client/common/fileList.component.js +++ b/app/client/common/fileList.component.js @@ -20,10 +20,9 @@ export const FileList = (props) => { return ( <div className={'rows ' + className}> <div class='row heading'> - {files.length + {(files && files.length) ? (title && <h3>{title}</h3>) : <h4>No files</h4>} - <div>{(loading || error) && status}</div> </div> <div className={'filelist rows'}> @@ -71,7 +70,7 @@ export const FileRow = (props) => { {fields.has('module') && file.module} </div> } - {this.props.options && this.props.options(file)} + {props.options && props.options(file)} </div> ) } |
