From 85c0700a145c79566f8e8c6a7447d7c85c769c9b Mon Sep 17 00:00:00 2001 From: Sanket322 Date: Wed, 4 Dec 2024 18:03:54 +0530 Subject: [PATCH] fix: use frm wrapper instead of global selector --- .../purchase_reconciliation_tool.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/india_compliance/gst_india/doctype/purchase_reconciliation_tool/purchase_reconciliation_tool.js b/india_compliance/gst_india/doctype/purchase_reconciliation_tool/purchase_reconciliation_tool.js index d4aaaaaf8..0b3d46b86 100644 --- a/india_compliance/gst_india/doctype/purchase_reconciliation_tool/purchase_reconciliation_tool.js +++ b/india_compliance/gst_india/doctype/purchase_reconciliation_tool/purchase_reconciliation_tool.js @@ -132,10 +132,10 @@ frappe.ui.form.on("Purchase Reconciliation Tool", { ); // move actions button next to filters - for (let button of $(".custom-actions .inner-group-button")) { + for (let button of frm.$wrapper.find(".custom-actions .inner-group-button")) { if (button.innerText?.trim() != "Actions") continue; - $(".custom-button-group .inner-group-button").remove(); - $(button).appendTo($(".custom-button-group")); + frm.$wrapper.find(".custom-button-group .inner-group-button").remove(); + $(button).appendTo(frm.$wrapper.find(".custom-button-group")); } },