diff --git a/backend/app/helpers/spree/admin/navigation_helper.rb b/backend/app/helpers/spree/admin/navigation_helper.rb index 35a9d8f39d..3174d65850 100644 --- a/backend/app/helpers/spree/admin/navigation_helper.rb +++ b/backend/app/helpers/spree/admin/navigation_helper.rb @@ -77,6 +77,11 @@ def tab(*args, &_block) if options[:css_class] css_classes << options[:css_class] end + + if params[:product_slug].present? && link.include?('Stock') + css_classes.delete('selected') + end + content_tag('li', link + (yield if block_given?), class: css_classes.join(' ') ) end