diff --git a/web/client/src/sections/metadataManagement/containers/filesTable.js b/web/client/src/sections/metadataManagement/containers/filesTable.js index 6dfa4f4..58c34d8 100644 --- a/web/client/src/sections/metadataManagement/containers/filesTable.js +++ b/web/client/src/sections/metadataManagement/containers/filesTable.js @@ -252,10 +252,10 @@ const FilesTable = (props) => { tableContent += ``; tableContent += `
${cd.name}
`; tableContent += `
${cd.description}
`; - tableContent += `
${cd.type}
`; + tableContent += `
${cd.fileName ? cd.type : ''}
`; let tagName = cd.tagFiles.map(tagSet => tagSet.tag.name); tableContent += `
${tagName.join(',')}
`; - tableContent += `
${cd.size ? getfilesize(cd.size) : ''}
`; + tableContent += `
${cd.fileName && cd.size ? getfilesize(cd.size) : ''}
`; tableContent += `
${moment(cd.updateAt).format('YYYY-MM-DD HH:mm:ss')}
`; tableContent += ``; })