File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/components/ChallengeEditor/Submissions Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -478,7 +478,7 @@ class SubmissionsComponent extends React.Component {
478
478
const url = window . URL . createObjectURL ( new Blob ( [ blob ] ) )
479
479
const link = document . createElement ( 'a' )
480
480
link . href = url
481
- link . setAttribute ( 'download' , `submission- ${ s . id } .zip` )
481
+ link . setAttribute ( 'download' , `${ s . legacySubmissionId } .zip` )
482
482
document . body . appendChild ( link )
483
483
link . click ( )
484
484
link . parentNode . removeChild ( link )
@@ -525,10 +525,9 @@ class SubmissionsComponent extends React.Component {
525
525
}
526
526
checkToCompressFiles ( )
527
527
_ . forEach ( sortedSubmissions , ( submission ) => {
528
- const mmSubmissionId = submission . id
529
- submissionsService . downloadSubmission ( mmSubmissionId )
528
+ submissionsService . downloadSubmission ( submission . id )
530
529
. then ( ( blob ) => {
531
- const file = new window . File ( [ blob ] , `submission- ${ mmSubmissionId } .zip` )
530
+ const file = new window . File ( [ blob ] , `${ submission . legacySubmissionId } .zip` )
532
531
allFiles . push ( file )
533
532
downloadedFile += 1
534
533
checkToCompressFiles ( )
You can’t perform that action at this time.
0 commit comments