fix upload dialog files - forEach not found.

This commit is contained in:
Miroslav Šedivý 2022-10-24 22:21:39 +02:00
parent 7c2550fc28
commit ba931ea52e

View File

@ -379,7 +379,7 @@
this.uploadActive = true this.uploadActive = true
this.uploadProgress = 0 this.uploadProgress = 0
try { try {
await this.neko.room.uploadDialog(files, { await this.neko.room.uploadDialog([...files], {
onUploadProgress: (progressEvent: ProgressEvent) => { onUploadProgress: (progressEvent: ProgressEvent) => {
this.uploadProgress = (progressEvent.loaded / progressEvent.total) * 100 this.uploadProgress = (progressEvent.loaded / progressEvent.total) * 100
}, },