From fbaa35ba1ca606e00ed99bc58de0ac6c441e8266 Mon Sep 17 00:00:00 2001
From: barredterra <14891507+barredterra@users.noreply.github.com>
Date: Mon, 18 Mar 2024 17:31:23 +0100
Subject: [PATCH] perf: get rid of unnecessary jquery
---
frappe/public/js/frappe/list/list_view.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/frappe/public/js/frappe/list/list_view.js b/frappe/public/js/frappe/list/list_view.js
index f20e2d351a..18e4ecf777 100644
--- a/frappe/public/js/frappe/list/list_view.js
+++ b/frappe/public/js/frappe/list/list_view.js
@@ -936,10 +936,10 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
let comment_count = null;
if (this.list_view_settings && !this.list_view_settings.disable_comment_count) {
- comment_count = $(``);
- $(comment_count).append(`
+ comment_count = ``;
}
html += `
@@ -948,7 +948,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
${settings_button || assigned_to}
${modified}
- ${comment_count ? $(comment_count).prop("outerHTML") : ""}
+ ${comment_count || ""}
${comment_count ? 'ยท' : ""}
${this.get_like_html(doc)}