mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-10 06:58:27 +03:00
Bugfix: nextcloud plugin Uncaught (in promise) TypeError: files.forEach
This commit is contained in:
parent
62a14a3ab0
commit
c7833d622a
1 changed files with 3 additions and 4 deletions
|
|
@ -6,10 +6,9 @@
|
|||
let view = e.detail;
|
||||
view.nextcloudAttach = () => {
|
||||
rl.ncFiles.selectFiles().then(files => {
|
||||
files.forEach(file => {
|
||||
let id = Jua?.randomId() || file.etag,
|
||||
attachment = view.addAttachmentHelper(
|
||||
id.etag,
|
||||
files && files.forEach(file => {
|
||||
let attachment = view.addAttachmentHelper(
|
||||
Jua?.randomId(),
|
||||
file.name.replace(/^.*\/([^/]+)$/, '$1'),
|
||||
file.size
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue