fix: signature should be an empty string by default

(would become undefined if the server message was empty)
This commit is contained in:
barredterra 2021-02-08 12:51:47 +01:00 committed by Suraj Shetty
parent bde85dcb72
commit a720efdbd0

View file

@ -726,7 +726,7 @@ frappe.views.CommunicationComposer = Class.extend({
if (!signature) {
const res = await this.get_default_outgoing_email_account_signature();
signature = "<!-- signature-included -->" + res.message.signature;
signature = res.message.signature ? "<!-- signature-included -->" + res.message.signature : "";
}
if (signature && !frappe.utils.is_html(signature)) {