From bdc3211fce88436d65000285f2dd9d1c4611cbcf Mon Sep 17 00:00:00 2001 From: Bill Date: Wed, 8 Sep 2021 17:13:37 -0400 Subject: [PATCH] Fix search results --- .../search-result/offer/CatalogSearchResultOfferView.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/catalog/views/page/search-result/offer/CatalogSearchResultOfferView.tsx b/src/views/catalog/views/page/search-result/offer/CatalogSearchResultOfferView.tsx index aa192180..28290cf9 100644 --- a/src/views/catalog/views/page/search-result/offer/CatalogSearchResultOfferView.tsx +++ b/src/views/catalog/views/page/search-result/offer/CatalogSearchResultOfferView.tsx @@ -42,13 +42,13 @@ export const CatalogSearchResultOfferView: FC switch(furniData.className) { case 'floor': - iconName = ['th', furniData.className, offer.customParams].join('_'); + iconName = ['th', furniData.className, offer.customParams ].join('_'); break; case 'wallpaper': - iconName = ['th', 'wall', offer.customParams].join('_'); + iconName = ['th', 'wall', offer.customParams ].join('_'); break; case 'landscape': - iconName = ['th', furniData.className, offer.customParams.replace('.', '_'), '001'].join('_'); + iconName = ['th', furniData.className, ((offer.customParams && offer.customParams.replace('.', '_')) || null), '001'].join('_'); break; }