From 02b6930820630de2a8bdb689d66ec03b920f3924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Busqu=C3=A9?= Date: Thu, 23 Jun 2022 13:55:08 +0200 Subject: [PATCH] Update backend/app/helpers/spree/admin/stock_locations_helper.rb Co-authored-by: Jared Norman --- backend/app/helpers/spree/admin/stock_locations_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/helpers/spree/admin/stock_locations_helper.rb b/backend/app/helpers/spree/admin/stock_locations_helper.rb index 24f7d878a1b..491e6e04841 100644 --- a/backend/app/helpers/spree/admin/stock_locations_helper.rb +++ b/backend/app/helpers/spree/admin/stock_locations_helper.rb @@ -4,7 +4,7 @@ module Spree module Admin module StockLocationsHelper def admin_stock_location_display_name(stock_location) - [stock_location.admin_name, stock_location.name].compact.join(' / ') + [stock_location.admin_name, stock_location.name].reject(&:blank?).join(' / ') end end end