diff --git a/core/app/models/spree/stock_item.rb b/core/app/models/spree/stock_item.rb index 506cf5aa1f..8c027bca57 100644 --- a/core/app/models/spree/stock_item.rb +++ b/core/app/models/spree/stock_item.rb @@ -106,7 +106,7 @@ def conditional_variant_touch def should_touch_variant? # the variant_id changes from nil when a new stock location is added inventory_cache_threshold && - (saved_change_to_count_on_hand&.any? { |cache| cache < inventory_cache_threshold }) || + saved_change_to_count_on_hand&.any? { |cache| cache < inventory_cache_threshold } || saved_change_to_variant_id? end