diff --git a/app/components/searchable_dropdown_component.rb b/app/components/searchable_dropdown_component.rb index 98365c4c8b..03ad6ea313 100644 --- a/app/components/searchable_dropdown_component.rb +++ b/app/components/searchable_dropdown_component.rb @@ -38,6 +38,6 @@ class SearchableDropdownComponent < ViewComponent::Base end def remove_search_plugin? - @should_remove_search_plugin ||= options.count < MINIMUM_OPTIONS_FOR_SEARCH_FILED + @remove_search_plugin ||= options.count < MINIMUM_OPTIONS_FOR_SEARCH_FILED end end diff --git a/app/reflexes/products_reflex.rb b/app/reflexes/products_reflex.rb index a2800c83e4..74a0b49873 100644 --- a/app/reflexes/products_reflex.rb +++ b/app/reflexes/products_reflex.rb @@ -89,8 +89,8 @@ class ProductsReflex < ApplicationReflex html: render(partial: "admin/products_v3/content", locals: { products: @products, pagy: @pagy, search_term: @search_term, producer_options: producers, producer_id: @producer_id, - category_options: categories, tax_category_options:, category_id: @category_id, - flashes: flash }) + category_options: categories, tax_category_options:, + category_id: @category_id, flashes: flash }) ) cable_ready.replace_state(