From da1e8750c8f402a47afb9db90e04f07fa1454a80 Mon Sep 17 00:00:00 2001 From: barredterra <14891507+barredterra@users.noreply.github.com> Date: Sun, 10 Mar 2024 16:09:09 +0100 Subject: [PATCH] refactor: replace `in_list(array, member)` with `array.includes(member)` --- .../print_format_builder/print_format_builder_field.html | 2 +- .../print_format_builder/print_format_builder_sidebar.html | 2 +- .../public/js/form_builder/components/FieldProperties.vue | 4 ++-- frappe/public/js/workflow_builder/components/Properties.vue | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/frappe/printing/page/print_format_builder/print_format_builder_field.html b/frappe/printing/page/print_format_builder/print_format_builder_field.html index 5e900df601..67bc4d3e53 100644 --- a/frappe/printing/page/print_format_builder/print_format_builder_field.html +++ b/frappe/printing/page/print_format_builder/print_format_builder_field.html @@ -10,7 +10,7 @@ data-columns="{%= me.get_visible_columns_string(field) %}" data-doctype="{%= field.options %}" {% } %}> - {% if !in_list(["Table", "HTML", "Custom HTML"], field.fieldtype) %} + {% if !["Table", "HTML", "Custom HTML"].includes(field.fieldtype) %} diff --git a/frappe/printing/page/print_format_builder/print_format_builder_sidebar.html b/frappe/printing/page/print_format_builder/print_format_builder_sidebar.html index 2b5b040bca..8ed4d50ddc 100644 --- a/frappe/printing/page/print_format_builder/print_format_builder_sidebar.html +++ b/frappe/printing/page/print_format_builder/print_format_builder_sidebar.html @@ -4,7 +4,7 @@