fix: check if email_template is set
Prevents error on empty email_template.
This commit is contained in:
parent
90819667cf
commit
d31ed278d6
1 changed files with 3 additions and 0 deletions
|
|
@ -271,6 +271,9 @@ frappe.views.CommunicationComposer = Class.extend({
|
|||
|
||||
this.dialog.fields_dict["email_template"].df.onchange = () => {
|
||||
var email_template = me.dialog.fields_dict.email_template.get_value();
|
||||
if (email_template === '') {
|
||||
return;
|
||||
}
|
||||
|
||||
var prepend_reply = function(reply) {
|
||||
if(me.reply_added===email_template) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue