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 15fce4c commit af4ba58Copy full SHA for af4ba58
src/components/ChallengeEditor/Submissions/index.js
@@ -515,7 +515,12 @@ class SubmissionsComponent extends React.Component {
515
const url = window.URL.createObjectURL(new Blob([blob]))
516
const link = document.createElement('a')
517
link.href = url
518
- link.setAttribute('download', `${s.legacySubmissionId}.zip`)
+ let fileName = s.legacySubmissionId
519
+ if (!fileName) {
520
+ fileName = s.id
521
+ }
522
+ fileName = fileName + '.zip'
523
+ link.setAttribute('download', `${fileName}`)
524
document.body.appendChild(link)
525
link.click()
526
link.parentNode.removeChild(link)
0 commit comments