Commit 8ca85d5e authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed broken file preview after reload, #240.

parent 484c881f
......@@ -97,7 +97,7 @@ class RawFiles extends React.Component {
}
this.props.api.getRawFileListFromCalc(uploadId, calcId).then(data => {
const files = data.contents.map(file => `${data.directory}/${file.name}`)
const files = data.contents.map(file => data.directory ? `${data.directory}/${file.name}` : file.name)
if (files.length > 500) {
raiseError('There are more than 500 files in this entry. We can only show the first 500.')
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment