From 903ade145a20e4a9d036e1484ca62f4ea7fae1e1 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Wed, 30 Nov 2022 15:48:03 +0530 Subject: [PATCH] fix: do not escape undefined txt --- frappe/public/js/frappe/utils/utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frappe/public/js/frappe/utils/utils.js b/frappe/public/js/frappe/utils/utils.js index 5e4db75c08..09805cd05f 100644 --- a/frappe/public/js/frappe/utils/utils.js +++ b/frappe/public/js/frappe/utils/utils.js @@ -246,6 +246,7 @@ Object.assign(frappe.utils, { }, escape_html: function (txt) { + if (!txt) return ""; let escape_html_mapping = { "&": "&", "<": "<",