diff --git a/backend/src/plugins/Cases/functions/getCaseEmbed.ts b/backend/src/plugins/Cases/functions/getCaseEmbed.ts index 914960f9..8f3e13c3 100644 --- a/backend/src/plugins/Cases/functions/getCaseEmbed.ts +++ b/backend/src/plugins/Cases/functions/getCaseEmbed.ts @@ -52,7 +52,12 @@ export async function getCaseEmbed( if (theCase.notes.length) { theCase.notes.forEach((note: any) => { const noteDate = moment(note.created_at); - const chunks = chunkMessageLines(note.body, 1014); + let noteBody = note.body.trim(); + if (noteBody === "") { + noteBody = emptyEmbedValue; + } + + const chunks = chunkMessageLines(noteBody, 1014); for (let i = 0; i < chunks.length; i++) { if (i === 0) {