We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a686ee4 commit 15fce4cCopy full SHA for 15fce4c
src/components/ChallengeEditor/Submissions/index.js
@@ -562,9 +562,14 @@ class SubmissionsComponent extends React.Component {
562
}
563
checkToCompressFiles()
564
_.forEach(sortedSubmissions, (submission) => {
565
+ let fileName = submission.legacySubmissionId
566
+ if (!fileName) {
567
+ fileName = submission.id
568
+ }
569
+ fileName = fileName + '.zip'
570
submissionsService.downloadSubmission(submission.id)
571
.then((blob) => {
- const file = new window.File([blob], `${submission.legacySubmissionId}.zip`)
572
+ const file = new window.File([blob], `${fileName}`)
573
allFiles.push(file)
574
downloadedFile += 1
575
0 commit comments