diff --git a/frontend/src/components/CommunicationArea.vue b/frontend/src/components/CommunicationArea.vue index eb2f8470..6e5e419c 100644 --- a/frontend/src/components/CommunicationArea.vue +++ b/frontend/src/components/CommunicationArea.vue @@ -133,7 +133,8 @@ const signature = createResource({ }) function setSignature(editor) { - signature.data = signature.data?.replace(/\n/g, '
') + if (!signature.data) return + signature.data = signature.data.replace(/\n/g, '
') let emailContent = editor.getHTML() emailContent = emailContent.startsWith('

') ? emailContent.slice(7)