Fix table changes with empty attachments

This commit is contained in:
Adria Navarro 2024-03-13 16:48:58 +01:00
parent 0420734d97
commit 940ff5acd2
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ export class AttachmentCleanup {
if ((columnRemoved && !renaming) || opts.deleting) {
rows.forEach(row => {
files = files.concat(
row[key].map((attachment: any) => attachment.key)
(row[key] || []).map((attachment: any) => attachment.key)
)
})
}