mirror of https://github.com/Chocobozzz/PeerTube
Fix download modal crash
parent
b5fd7881a0
commit
340d77b7c6
|
@ -59,7 +59,7 @@ export class VideoGenerateDownloadComponent implements OnInit {
|
|||
if (this.includeAudio) {
|
||||
const audio = this.findAudioFileOnly()
|
||||
|
||||
return file.size + (audio.size || 0)
|
||||
return file.size + (audio?.size || 0)
|
||||
}
|
||||
|
||||
return file.size
|
||||
|
|
Loading…
Reference in New Issue