File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,10 @@ export class SubmissionResponseParsingService extends BaseResponseParsingService
131131 // Iterate over all workspaceitem's sections
132132 Object . keys ( item . sections )
133133 . forEach ( ( sectionId ) => {
134- if ( typeof item . sections [ sectionId ] === 'object' && isNotEmpty ( item . sections [ sectionId ] ) ) {
134+ if ( typeof item . sections [ sectionId ] === 'object' && ( isNotEmpty ( item . sections [ sectionId ] ) &&
135+ // When Upload section is disabled, add to submission only if there are files
136+ ( ! item . sections [ sectionId ] . hasOwnProperty ( 'files' ) || isNotEmpty ( ( item . sections [ sectionId ] as any ) . files ) ) ) ) {
137+
135138 const normalizedSectionData = Object . create ( { } ) ;
136139 // Iterate over all sections property
137140 Object . keys ( item . sections [ sectionId ] )
You can’t perform that action at this time.
0 commit comments