Skip to content
Snippets Groups Projects
Commit c27f3b02 authored by Audrey Hamelers's avatar Audrey Hamelers
Browse files

file label error big fix

parent a5e471e9
Branches
Tags
2 merge requests!98Dev,!97Shared data model
......@@ -132,7 +132,7 @@ const FileThumbnails = ({ files }) => (
</Icon>
)}
</Bold>
{` ${file.type}`}
{file.type && ` ${file.type}`}
</span>
{file.type !== 'manuscript' && (
<span>
......@@ -144,7 +144,7 @@ const FileThumbnails = ({ files }) => (
</Icon>
)}
</Bold>
{` ${file.label}`}
{file.label && ` ${file.label}`}
</span>
)}
</FileInfo>
......
......@@ -129,7 +129,10 @@ const submitSections = (
error:
files &&
files
.filter(file => !file.type || SubmissionTypes.includes(file.type))
.filter(
file =>
!file.type || SubmissionTypes.some(s => s.value === file.type),
)
.some(file => !file.label || !file.type) ? (
<ErrorMessage>
<Icon color="currentColor" size={2}>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment