fix: condition of event participants (#26300)

This commit is contained in:
Nihantra C. Patel 2024-05-16 18:04:18 +05:30 committed by GitHub
parent 803f7b3990
commit c353aae012
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,7 +71,7 @@ frappe.ui.form.on("Event", {
frappe.ui.form.on("Event Participants", {
event_participants_remove: function (frm, cdt, cdn) {
if (cdt && !cdn.includes("New Event Participants")) {
if (cdt && !cdn.includes("new-event-participants")) {
frappe.call({
type: "POST",
method: "frappe.desk.doctype.event.event.delete_communication",