fix empty attachements

This commit is contained in:
SrGooglo 2024-11-16 18:28:12 +00:00
parent bebebe6508
commit 17892508e7

View File

@ -17,6 +17,9 @@ export default async (payload = {}) => {
}
if (isAttachmentArray) {
// clean empty attachments
attachments = attachments.filter((attachment) => attachment)
// fix attachments with url strings if needed
attachments = attachments.map((attachment) => {
if (typeof attachment === "string") {