commit | d238751e6ba0666b4098f1db9be38e9bd8163770 | [log] [tgz] |
---|---|---|
author | barredterra <14891507+barredterra@users.noreply.github.com> | Tue Mar 19 12:03:36 2024 +0100 |
committer | barredterra <14891507+barredterra@users.noreply.github.com> | Tue Mar 19 12:03:36 2024 +0100 |
tree | af79c1a73335792c9006edc9cb21b8ab0a8dd1b1 | |
parent | 3dd6686d8ad8fa7a5b1a96545b4aaa47535f317a [diff] [blame] |
refactor: usage of in_list
diff --git a/erpnext/public/js/communication.js b/erpnext/public/js/communication.js index d9187f8b..c8905e1 100644 --- a/erpnext/public/js/communication.js +++ b/erpnext/public/js/communication.js
@@ -20,7 +20,7 @@ ); } - if (!in_list(["Lead", "Opportunity"], frm.doc.reference_doctype)) { + if (!["Lead", "Opportunity"].includes(frm.doc.reference_doctype)) { frm.add_custom_button( __("Lead"), () => {