We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b665456 commit fe1e493Copy full SHA for fe1e493
1 file changed
src/app/core/submission/submission-response-parsing.service.ts
@@ -131,7 +131,10 @@ export class SubmissionResponseParsingService extends BaseResponseParsingService
131
// Iterate over all workspaceitem's sections
132
Object.keys(item.sections)
133
.forEach((sectionId) => {
134
- if (typeof item.sections[sectionId] === 'object' && isNotEmpty(item.sections[sectionId])) {
+ 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
+
138
const normalizedSectionData = Object.create({});
139
// Iterate over all sections property
140
Object.keys(item.sections[sectionId])
0 commit comments