From 631efb004e3e2cf3ef1997e57b5019a83830e66f Mon Sep 17 00:00:00 2001 From: Rahul Agrawal <12agrawalrahul@gmail.com> Date: Tue, 23 Dec 2025 17:39:24 +0530 Subject: [PATCH] fix: remove unwanted conditional check --- frappe/public/js/frappe/views/communication.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/public/js/frappe/views/communication.js b/frappe/public/js/frappe/views/communication.js index b2d106444b..9df03c7726 100755 --- a/frappe/public/js/frappe/views/communication.js +++ b/frappe/public/js/frappe/views/communication.js @@ -1017,8 +1017,8 @@ frappe.views.CommunicationComposer = class { on_use_html_toggle() { const use_html = this.dialog.get_value("use_html"); - this.dialog.set_df_property("content", "hidden", use_html ? 1 : 0); - this.dialog.set_df_property("content_html", "hidden", !use_html ? 1 : 0); + this.dialog.set_df_property("content", "hidden", use_html); + this.dialog.set_df_property("content_html", "hidden", !use_html); this.dialog.set_value("email_template", ""); }