From 270684485c43f614f2c4dd87bc14b421882598f3 Mon Sep 17 00:00:00 2001 From: f Date: Thu, 20 Jun 2024 16:19:40 -0300 Subject: [PATCH] fix: no ordenar los valores --- app/views/posts/attributes/_new_array.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/posts/attributes/_new_array.haml b/app/views/posts/attributes/_new_array.haml index e73560c8..b8607627 100644 --- a/app/views/posts/attributes/_new_array.haml +++ b/app/views/posts/attributes/_new_array.haml @@ -34,7 +34,7 @@ Para poder cancelar, mantenemos el estado original y desactivamos o activamos los ítemes según estén incluidos en esa lista o no. %ul.placeholder-glow{ data: { target: 'array.current' } } - - metadata.value.sort_by(&:remove_diacritics).each do |value| + - metadata.value.each do |value| = render 'posts/new_array_value', value: value = render 'bootstrap/modal', id: id, modal_content_attributes: { class: 'h-100' }, hide_actions: ['array#cancel'], keydown_actions: %w[keydown->array#cancelWithEscape] do @@ -46,8 +46,8 @@ - content_for :"#{id}_body" do .form-group.mb-0{ id: "#{id}_body" } - -# Eliminamos las tildes para poder buscar independientemente de cómo se escriba - - metadata.values.sort_by(&:remove_diacritics).each do |value| + -# Eliminamos las tildes para poder buscar independientemente de cómo se escriba. + - metadata.values.each do |value| .mb-2{ data: { target: 'array.item', 'searchable-value': value.remove_diacritics.downcase, value: value } } = render 'bootstrap/custom_checkbox', name: name, id: random_id, value: value, checked: metadata.value.include?(value), content: value, data: { action: 'required-checkbox#change', target: 'required-checkbox.checkbox' }